fix: one setup decision for line mode and screen

Line mode finds mounted cards, shows its menu and names the folder for a
pack, asks the folder instead of taking a default, and lists setups in the
screen's order. Devices have one spelling each, matched without case,
spaces or punctuation, and a device several systems run lists them all.
--tui --dest reads a card as --plain does. Card boundaries read every
parent up to a mount point from mountinfo. --offline with --yes counts the
files it leaves out as pending, never as failed. The P3 points of
code_audit_15 and tui_audit_8 follow.
This commit is contained in:
Abdessamad Derraz committed 2026-10-27 08:43:08 +01:00
1 parent 5431a42e23
commit 4fbbd2c760
18 files changed
+1413 -383

No files matched your search

+3 -1
View File
@@ -704,7 +704,9 @@ class TheOneLinerNarrows(unittest.TestCase):
env = dict(repo.env(), HOME=str(home), USERPROFILE=str(home),
XDG_CONFIG_HOME=str(home), RETROBIOS_OS="linux")
command = f"{shlex.quote(sys.executable)} {shlex.quote(str(REPO_ROOT / 'install.py'))}"
for answer, code in (("n", 2), ("y", 0)):
# No to the folders asks the folder again, as the screen's
# Choose another folder does: the input then ends, Ctrl+D.
for answer, code in (("n", 130), ("y", 0)):
with self.subTest(answer=answer):
proc = subprocess.run(
["script", "-qec", command, "/dev/null"],