mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-18 23:57:55 -06:00
feat: tell RomM users to scan after an install
This commit is contained in:
1 parent
4dd43aa627
commit
3d694c7d70
7 files changed
+55
-10
No files matched your search
@@ -4048,6 +4048,20 @@ def _install_run(env: dict, *argv: str, **kwargs) -> subprocess.CompletedProcess
|
||||
)
|
||||
|
||||
|
||||
class RomMIsToldToScan(unittest.TestCase, _LoopbackRun):
|
||||
"""RomM serves the firmware its library scan records, and the run ended
|
||||
on "installed" with no word of the scan the player waits on."""
|
||||
|
||||
def test_the_end_of_an_install_names_the_scan(self):
|
||||
env = self.serve(self)
|
||||
dest = self.home / "library" / "bios"
|
||||
dest.mkdir(parents=True)
|
||||
proc = _install_run(env, "--platform", "romm", "--dest", str(dest),
|
||||
"--system", "atari-lynx", "--no-input")
|
||||
self.assertEqual(proc.returncode, 0, proc.stdout + proc.stderr)
|
||||
self.assertIn(install.ROMM_SCAN_WORDS, " ".join(proc.stdout.split()))
|
||||
|
||||
|
||||
class AnUnknownNameIsAnEvent(unittest.TestCase):
|
||||
"""--events carried start then end with code 1 for an unknown platform,
|
||||
target or system: the reason was on stderr only, which readers ignore."""
|
||||
|
||||
@@ -4591,6 +4591,20 @@ def _installed_state(dest: Path, code: int = 0, failed: list | None = None) -> i
|
||||
return state
|
||||
|
||||
|
||||
class TheRomMResultNamesTheScan(unittest.TestCase):
|
||||
"""RomM's player sees firmware its scan recorded: the result said
|
||||
"installed" and left the scan unsaid."""
|
||||
|
||||
def test_the_result_and_its_farewell_say_it(self):
|
||||
state = _installed_state(SYSTEM_DIR)
|
||||
state.platform = "romm"
|
||||
_title, lines = install.tui_outcome(state)
|
||||
self.assertIn(install.ROMM_SCAN_WORDS, lines)
|
||||
self.assertIn(install.ROMM_SCAN_WORDS, install._farewell_lines(state))
|
||||
state.platform = "retroarch"
|
||||
self.assertNotIn(install.ROMM_SCAN_WORDS, install.tui_outcome(state)[1])
|
||||
|
||||
|
||||
class AppOnTheCard(unittest.TestCase):
|
||||
"""The RetroBIOS app offered on the result screen and in the options."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user