Add bounded aircraft control and verify current packaged runtime closure
This commit is contained in:
@@ -177,6 +177,18 @@ class GameRunnerTests(unittest.TestCase):
|
||||
for unwanted in ['-server', '-gproj', '-errPlay', '-errSmoke', '-plugin', 'Workbench', '-silentCrashReport', '-noCrashDialog']:
|
||||
self.assertFalse(any(unwanted in arg for arg in command))
|
||||
|
||||
def test_prison_view_capture_is_explicit_and_excludes_controls_and_packed_inputs(self):
|
||||
args = (runner.ROOT, Path('/Steam'), Path('/compat'), Path('/profile'))
|
||||
for project in ('core', 'chat'):
|
||||
ordinary = runner.command_for(*args, project)
|
||||
self.assertNotIn('-errOrdinaryScreenshot', ordinary)
|
||||
captured = runner.command_for(*args, project, capture_prison_view=True)
|
||||
self.assertEqual(captured[captured.index('-errOrdinaryScreenshot')+1], '1')
|
||||
with self.assertRaisesRegex(ValueError, 'loose successor'):
|
||||
runner.command_for(*args, runner.CONTROL, capture_prison_view=True)
|
||||
with self.assertRaisesRegex(ValueError, 'loose successor'):
|
||||
runner.command_for(*args, 'core', packed={}, capture_prison_view=True)
|
||||
|
||||
def test_ready_requires_game_module_without_workbench_and_normal_phase(self):
|
||||
module = 'SCRIPT : Module: Game; loaded 12x files; defines: "PLATFORM_WINDOWS,ENABLE_DIAG"; CRC32: a\n'
|
||||
phase = 'SCRIPT : Rereintroduced [mission]: phase 0 -> 1\nSCRIPT : ERR ORDINARY: header verified project=core systems=MissionSystems\nSCRIPT : ERR ORDINARY: local participant verified project=core phase=prison\n'
|
||||
|
||||
Reference in New Issue
Block a user