From 5554e053e9f3d5f7987d3f1d889802b211af8eab Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Thu, 27 Sep 2012 11:50:31 -0400 Subject: Added support for interrupted / failed experiments, and included a status summary at the end of run_exps.py --- experiment/experiment.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'experiment/experiment.py') diff --git a/experiment/experiment.py b/experiment/experiment.py index ce189a1..5ed6480 100644 --- a/experiment/experiment.py +++ b/experiment/experiment.py @@ -94,7 +94,10 @@ class Experiment(object): self.log("Starting the program in ({0} seconds)".format( len(self.executables) * exec_pause)) for e in self.executables: - e.execute() + try: + e.execute() + except: + raise Exception("Executable failed: %s" % e) time.sleep(exec_pause) sleep_time = 2 -- cgit v1.2.2