mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 01:53:56 -06:00
fix: expect code 2 for a typo in two more tests
This commit is contained in:
1 parent
9c128e46b2
commit
806cb6c719
2 files changed
+2
-2
No files matched your search
@@ -4894,7 +4894,7 @@ class TheEmulatorNamesHaveTheirOwnListing(unittest.TestCase, _LoopbackRun):
|
||||
def test_the_hint_counts_what_the_listing_prints(self):
|
||||
proc = _install_run(self.env, "--platform", "retroarch", "--no-input",
|
||||
"--emulator", "nope")
|
||||
self.assertEqual(proc.returncode, 1, proc.stdout)
|
||||
self.assertEqual(proc.returncode, 2, proc.stdout)
|
||||
found = re.search(r"--list-emulators lists all (\d+)\.", proc.stderr)
|
||||
self.assertIsNotNone(found, proc.stderr)
|
||||
listing = _install_run(self.env, "--platform", "retroarch", "--no-input",
|
||||
|
||||
@@ -415,7 +415,7 @@ class AnUnknownTargetStopsTheRunFirst(unittest.TestCase):
|
||||
contextlib.redirect_stderr(io.StringIO()) as err:
|
||||
with self.assertRaises(SystemExit) as stop:
|
||||
install.main()
|
||||
self.assertEqual(stop.exception.code, 1)
|
||||
self.assertEqual(stop.exception.code, 2)
|
||||
self.assertIn("unknown target 'steamos' for RetroArch", err.getvalue())
|
||||
self.assertIn("Nothing was installed", err.getvalue())
|
||||
fetch.assert_not_called()
|
||||
|
||||
Reference in new issue
Block a user