lab7: live stand integration fixes and verified evidence
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user