Author reusable mission sites with finite scavenging stock
This commit is contained in:
@@ -99,13 +99,15 @@ with (profile/'headless-launch.log').open('w') as output:
|
||||
session = max(candidates, key=lambda x:x.stat().st_mtime)
|
||||
console = session/'console.log'
|
||||
content = console.read_text(errors='replace') if console.exists() else ''
|
||||
if 'ERR SMOKE FAIL:' in content or 'Virtual Machine Exception' in content or 'Can\'t compile "Game"' in content:
|
||||
if 'Rereintroduced: scenario preparation failed' in content or 'ERR SMOKE FAIL:' in content or 'Virtual Machine Exception' in content or 'Can\'t compile "Game"' in content:
|
||||
result = 'test-failed'; break
|
||||
if content.count('ERR SMOKE COMPLETE:') >= a.rounds:
|
||||
if complete_at is None: complete_at = time.time()
|
||||
if time.time()-complete_at >= 6: result = 'smoke-completed'; break
|
||||
if child.poll() is not None: result = 'process-exited'; break
|
||||
time.sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
result = 'interrupted'
|
||||
finally:
|
||||
# Stop Wine in this disposable prefix only. Proton's reaper may create a
|
||||
# separate process group, so killing Gamescope alone can leave Wine alive.
|
||||
|
||||
Reference in New Issue
Block a user