lab7: live stand integration fixes and verified evidence

This commit is contained in:
2026-11-26 19:17:22 +03:00
parent 33cec9bb7a
commit 210d645e28
47 changed files with 50612 additions and 80 deletions
+8 -1
View File
@@ -53,7 +53,14 @@ def cli(*args, stdin=None):
try:
return result.returncode, json.loads(text)
except ValueError:
pass
for line in reversed(text.splitlines()):
line = line.strip()
if not line:
continue
try:
return result.returncode, json.loads(line)
except ValueError:
continue
time.sleep(1)
raise Failure('jobs.cli did not return JSON for ' + ' '.join(args))