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:
Abdessamad Derraz committed 2026-11-21 21:42:20 +01:00
1 parent 571c4bbfd9
commit 665e2ebb52
13 files changed
+418 -470

No files matched your search

+1 -1
View File
@@ -7949,7 +7949,7 @@ class _LineModeFindings(_CardFixtures):
return_value=mock.Mock(free=10)), \
contextlib.redirect_stderr(io.StringIO()) as err, \
self.assertRaises(SystemExit):
install._check_free_space(self.root, 1000, "retroarch", card=True)
reported(install._check_free_space, self.root, 1000, "retroarch", card=True)
said = err.getvalue()
self.assertIn("on the card, then run it again", said)
self.assertNotIn("--platform", said)