Add a message when the run is interrupted

This commit is contained in:
Nicolas Setton
2018-07-20 01:12:59 -04:00
parent 9bd1c0ec15
commit 7959cc235c

View File

@@ -40,7 +40,7 @@ def safe_run(main):
# Run it, printint output to stdout as we go along
subprocess.call(["lxc", "exec", CONT, "--",
"su", "unprivileged", "-c",
"timeout 20s {}".format(
"timeout 20s {} || echo '<interrupted>'".format(
os.path.join(tmpdir, os.path.basename(main)))],
stdout=sys.stdout)
except E: