diff options
Diffstat (limited to 'experiment')
-rw-r--r-- | experiment/executable/executable.py | 3 | ||||
-rw-r--r-- | experiment/experiment.py | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/experiment/executable/executable.py b/experiment/executable/executable.py index 6697a8d..897c2d9 100644 --- a/experiment/executable/executable.py +++ b/experiment/executable/executable.py | |||
@@ -43,6 +43,9 @@ class Executable(object): | |||
43 | full_command += self.extra_args | 43 | full_command += self.extra_args |
44 | return full_command | 44 | return full_command |
45 | 45 | ||
46 | def __str__(self): | ||
47 | return " ".join(self.__get_full_command()) | ||
48 | |||
46 | def execute(self): | 49 | def execute(self): |
47 | """Execute the binary.""" | 50 | """Execute the binary.""" |
48 | full_command = self.__get_full_command() | 51 | full_command = self.__get_full_command() |
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): | |||
94 | self.log("Starting the program in ({0} seconds)".format( | 94 | self.log("Starting the program in ({0} seconds)".format( |
95 | len(self.executables) * exec_pause)) | 95 | len(self.executables) * exec_pause)) |
96 | for e in self.executables: | 96 | for e in self.executables: |
97 | e.execute() | 97 | try: |
98 | e.execute() | ||
99 | except: | ||
100 | raise Exception("Executable failed: %s" % e) | ||
98 | time.sleep(exec_pause) | 101 | time.sleep(exec_pause) |
99 | 102 | ||
100 | sleep_time = 2 | 103 | sleep_time = 2 |