aboutsummaryrefslogtreecommitdiffstats
path: root/run/litmus_util.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-04-10 15:32:39 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2013-04-10 15:32:39 -0400
commit384e322f974534c1c734db144633e3c3e002b1f8 (patch)
tree1637267cea4cb5166677f272e97b19ce8331a36c /run/litmus_util.py
parent4162cc0c57de22566efa6e2dab224909279f2a47 (diff)
Added option to send email when experiments complete.
Diffstat (limited to 'run/litmus_util.py')
-rw-r--r--run/litmus_util.py4
1 files changed, 1 insertions, 3 deletions
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):
8 8
9 This methods sleeps for two seconds to give Linux the chance to execute 9 This methods sleeps for two seconds to give Linux the chance to execute
10 schedule switching code. Raises an exception if the switch does not work. 10 schedule switching code. Raises an exception if the switch does not work.
11
12 ''' 11 '''
13 12
14 switch_to = str(switch_to_in).strip() 13 switch_to = str(switch_to_in).strip()
@@ -23,7 +22,7 @@ def switch_scheduler(switch_to_in):
23 cur_plugin = active_plugin.read().strip() 22 cur_plugin = active_plugin.read().strip()
24 23
25 if switch_to != cur_plugin: 24 if switch_to != cur_plugin:
26 raise Exception("Could not switch to plugin: %s" % switch_to) 25 raise Exception("Could not switch to '%s' (check dmesg)" % switch_to)
27 26
28def waiting_tasks(): 27def waiting_tasks():
29 reg = re.compile(r'^ready.*?(?P<READY>\d+)$', re.M) 28 reg = re.compile(r'^ready.*?(?P<READY>\d+)$', re.M)
@@ -37,7 +36,6 @@ def waiting_tasks():
37 return 0 if not ready else int(ready) 36 return 0 if not ready else int(ready)
38 37
39def release_tasks(): 38def release_tasks():
40
41 try: 39 try:
42 data = subprocess.check_output([conf.BINS['release']]) 40 data = subprocess.check_output([conf.BINS['release']])
43 except subprocess.CalledProcessError: 41 except subprocess.CalledProcessError: