mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-19 16:17:49 -06:00
chore: merge tooling batch
This commit is contained in:
commit
b90f8bb0b9
116 files changed
+12868
-9741
No files matched your search
@@ -237,7 +237,7 @@ class CheckNamesWhyAFileIsRefused(Scratch):
|
||||
self.assertIn(f"read by beetle_psx, pcsx_rearmed at {here / 'scph5501.bin'}", out)
|
||||
self.assertIn(f"read by beetle_psx, pcsx_rearmed at {here / 'pcsx' / 'extra.bin'}",
|
||||
out)
|
||||
# Never "opened" of a file that is not there (tui_audit_16 P3-12).
|
||||
# Never "opened" of a file that is not there.
|
||||
self.assertNotIn("opened at", out)
|
||||
|
||||
def test_a_complete_folder_says_nothing_more(self):
|
||||
@@ -545,7 +545,7 @@ class FromPackInstallsOffline(Scratch):
|
||||
self.assertEqual((self.dest / "dolphin-emu" / rel).read_bytes(), data)
|
||||
|
||||
def test_the_data_trees_say_what_they_weigh(self):
|
||||
"""tui_audit_4 P3-10.8: the plan read "and 2636 data files" with no
|
||||
"""The plan read "and 2636 data files" with no
|
||||
size. The data event carries the bytes check's data_missing counts."""
|
||||
tree = {"Sys/GC/font.bin": b"font bytes", "Sys/Wii/setting.txt": b"setting"}
|
||||
listed = manifest()
|
||||
@@ -733,7 +733,7 @@ class OfflineMakesNoRequest(Scratch):
|
||||
self.assertEqual(proc.returncode, 1, proc.stdout + proc.stderr)
|
||||
self.assertEqual((self.dest / "scph5501.bin").read_bytes(), US)
|
||||
self.assertFalse((self.dest / "gba_bios.bin").exists())
|
||||
# Missing, never failed (code_audit_15 P3-1): no FAILED line per file.
|
||||
# Missing, never failed: no FAILED line per file.
|
||||
self.assertIn("3 still missing", proc.stdout + proc.stderr)
|
||||
self.assertNotIn("FAILED", proc.stdout + proc.stderr)
|
||||
self.assertIn("without --offline", proc.stdout + proc.stderr)
|
||||
@@ -854,7 +854,7 @@ class ADryRunOpensOnItsTotals(Scratch):
|
||||
|
||||
|
||||
class OfflineLeavesFilesMissing(Scratch):
|
||||
"""code_audit_13 P1-1, P3-7, P3-8: the files --offline leaves out at a
|
||||
"""The files --offline leaves out at a
|
||||
terminal were counted with a "no" to the size question. Once one file
|
||||
came from this machine, 14,696 missing ended on Done and exit 0."""
|
||||
|
||||
@@ -872,8 +872,7 @@ class OfflineLeavesFilesMissing(Scratch):
|
||||
sources="4 files copied from old, 14696 still missing.")
|
||||
self.assertEqual(code, 1)
|
||||
self.assertNotIn("Done", text)
|
||||
# One count, the sources line as the head, as the screen's result
|
||||
# (tui_audit_15 P3-8).
|
||||
# One count, the sources line as the head, as the screen's result.
|
||||
self.assertIn("Finished with files missing. 4 files copied from old, 14696 still "
|
||||
"missing.", text)
|
||||
self.assertEqual(text.count("14696"), 1)
|
||||
@@ -923,7 +922,7 @@ class OfflineLeavesFilesMissing(Scratch):
|
||||
|
||||
|
||||
class OneOfflineVocabulary(Scratch):
|
||||
"""code_audit_14 P3-1 to P3-4, tui_audit_7 P3-4: --offline said one
|
||||
"""--offline said one
|
||||
thing at a terminal and another without questions, on the screen and
|
||||
under --check."""
|
||||
|
||||
@@ -934,7 +933,7 @@ class OneOfflineVocabulary(Scratch):
|
||||
return old
|
||||
|
||||
def test_a_run_without_questions_says_missing_not_failed(self):
|
||||
"""P3-2: "Finished with errors ... 3 files failed" and "Run the
|
||||
""""Finished with errors ... 3 files failed" and "Run the
|
||||
same command again to retry only those"."""
|
||||
proc = self.run_installer("--offline", "--manifest", str(self.list),
|
||||
"--from", str(self.old()), "--no-input")
|
||||
@@ -948,7 +947,7 @@ class OneOfflineVocabulary(Scratch):
|
||||
self.assertNotIn(said, out)
|
||||
|
||||
def test_nothing_installed_is_said_so(self):
|
||||
"""P3-3: "Finished with files missing. 0 files installed"."""
|
||||
""""Finished with files missing. 0 files installed"."""
|
||||
failures = [("a.bin", install.NOT_WRITABLE), ("b.bin", install.NOT_WRITABLE)]
|
||||
with contextlib.redirect_stdout(io.StringIO()) as out, \
|
||||
self.assertRaises(SystemExit) as stop:
|
||||
@@ -960,7 +959,7 @@ class OneOfflineVocabulary(Scratch):
|
||||
self.assertNotIn("0 files installed", out.getvalue())
|
||||
|
||||
def test_the_command_suggested_keeps_the_offline_setting(self):
|
||||
"""P3-3: sudo does not pass RETROBIOS_INSTALL_OFFLINE on."""
|
||||
"""Sudo does not pass RETROBIOS_INSTALL_OFFLINE on."""
|
||||
import test_install_tui as tui
|
||||
|
||||
args = tui._args(platform="retroarch", declared_only=False, offline=False)
|
||||
@@ -970,7 +969,7 @@ class OneOfflineVocabulary(Scratch):
|
||||
self.assertIn("--offline", hint.command("retroarch", self.dest, elevated=True))
|
||||
|
||||
def test_check_offline_says_what_cannot_come(self):
|
||||
"""P3-4: "Run the same command without --check to fetch them"."""
|
||||
""""Run the same command without --check to fetch them"."""
|
||||
proc = self.run_installer("--check", "--offline", "--manifest", str(self.list))
|
||||
out = proc.stdout + proc.stderr
|
||||
self.assertEqual(proc.returncode, 1, out)
|
||||
@@ -979,7 +978,7 @@ class OneOfflineVocabulary(Scratch):
|
||||
self.assertIn("Copy them from your old card or a folder (--from)", out)
|
||||
|
||||
def test_the_screen_says_missing_not_failed(self):
|
||||
"""P3-2 on the full screen: "Finished with errors, 20 failed"."""
|
||||
"""On the full screen: "Finished with errors, 20 failed"."""
|
||||
import test_install_tui as tui
|
||||
|
||||
reason = f"not fetched: {install.OFFLINE_WORDS}"
|
||||
@@ -997,7 +996,7 @@ class OneOfflineVocabulary(Scratch):
|
||||
self.assertEqual(install.tui_outcome(state)[0], "Nothing installed")
|
||||
|
||||
def test_the_line_menu_copies_from_a_folder(self):
|
||||
"""tui_audit_7 P3-4: no way to a folder, and an install of nothing
|
||||
"""No way to a folder, and an install of nothing
|
||||
offered."""
|
||||
old = self.old()
|
||||
install.LOCAL.reset()
|
||||
@@ -1015,8 +1014,8 @@ class OneOfflineVocabulary(Scratch):
|
||||
self.assertNotIn("install everything", text)
|
||||
|
||||
|
||||
class AuditFifteenOffline(Scratch):
|
||||
"""code_audit_15 P3-1, P3-5 and tui_audit_8 P3-11: what --offline and a
|
||||
class OfflineAndPackLeaveOut(Scratch):
|
||||
"""What --offline and a
|
||||
pack leave out, and what a folder copied from holds, said as such."""
|
||||
|
||||
def test_yes_offline_counts_the_rest_missing_never_failed(self):
|
||||
|
||||
Reference in new issue
Block a user