mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 03:18:52 -06:00
fix: send every refusal as an error event
--romm-firmware, --pack without a platform, an option the list does not record, a board list the run cannot go on without, a full drive and the --dest a named platform needs printed and exited on their own: --events got end and no error. Each now raises Refusal where it is decided, and refuse_name, --find and the space check stop formatting their own copy.
This commit is contained in:
1 parent
571c4bbfd9
commit
665e2ebb52
13 files changed
+418
-470
No files matched your search
@@ -579,7 +579,11 @@ class APlatformWithoutTargetsSaysSo(unittest.TestCase):
|
||||
def test_the_way_forward_is_named(self):
|
||||
with contextlib.redirect_stderr(io.StringIO()) as err, \
|
||||
self.assertRaises(SystemExit):
|
||||
install._unknown_target("switch", "misterfpga", {})
|
||||
try:
|
||||
install._unknown_target("switch", "misterfpga", {})
|
||||
except install.Refusal as refusal:
|
||||
refusal.report()
|
||||
raise
|
||||
said = err.getvalue()
|
||||
self.assertIn("MiSTer FPGA has no hardware targets: run again without --target.", said)
|
||||
self.assertNotIn("unknown target", said)
|
||||
|
||||
Reference in new issue
Block a user