aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThijs Paelman <thijs@ouroboros.rocks>2026-01-18 21:07:29 +0100
committerThijs Paelman <thijs@ouroboros.rocks>2026-01-18 21:07:29 +0100
commit4e35c6b445d0cfbad9cf15a48f2d341e29dbd806 (patch)
tree7fbde89db68374b4fe6be47a97fec9f106139e4c /examples
parentec20869ae48c80fb62f2db2135f167763ad21f67 (diff)
downloadrumba-4e35c6b445d0cfbad9cf15a48f2d341e29dbd806.tar.gz
rumba-4e35c6b445d0cfbad9cf15a48f2d341e29dbd806.zip
rumba: Add exit status to ExperimentManagerHEADmaster
Record if the body of the ExperimentManager ran without any errors.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/scalingtime.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/scalingtime.py b/examples/scalingtime.py
index 547622f..920553c 100755
--- a/examples/scalingtime.py
+++ b/examples/scalingtime.py
@@ -243,10 +243,12 @@ exp = exp_class(testbed, nodes=nodes)
if __name__ == "__main__":
draw_experiment(exp)
- with ExperimentManager(exp, swap_out_strategy=args.swapout):
+ with ExperimentManager(exp, swap_out_strategy=args.swapout) as expM:
exp.swap_in()
if not isinstance(testbed, docker.Testbed) \
and not isinstance(testbed, qemu.Testbed) \
and not isinstance(testbed, local.Testbed):
exp.install_prototype()
exp.bootstrap_prototype()
+
+ exit(expM.exit_status)