From 384e322f974534c1c734db144633e3c3e002b1f8 Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Wed, 10 Apr 2013 15:32:39 -0400 Subject: Added option to send email when experiments complete. --- run/litmus_util.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'run/litmus_util.py') diff --git a/run/litmus_util.py b/run/litmus_util.py index b9080c1..4709b66 100644 --- a/run/litmus_util.py +++ b/run/litmus_util.py @@ -8,7 +8,6 @@ def switch_scheduler(switch_to_in): This methods sleeps for two seconds to give Linux the chance to execute schedule switching code. Raises an exception if the switch does not work. - ''' switch_to = str(switch_to_in).strip() @@ -23,7 +22,7 @@ def switch_scheduler(switch_to_in): cur_plugin = active_plugin.read().strip() if switch_to != cur_plugin: - raise Exception("Could not switch to plugin: %s" % switch_to) + raise Exception("Could not switch to '%s' (check dmesg)" % switch_to) def waiting_tasks(): reg = re.compile(r'^ready.*?(?P\d+)$', re.M) @@ -37,7 +36,6 @@ def waiting_tasks(): return 0 if not ready else int(ready) def release_tasks(): - try: data = subprocess.check_output([conf.BINS['release']]) except subprocess.CalledProcessError: -- cgit v1.2.2