diff options
Diffstat (limited to 'run/litmus_util.py')
-rw-r--r-- | run/litmus_util.py | 4 |
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 | ||
28 | def waiting_tasks(): | 27 | def 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 | ||
39 | def release_tasks(): | 38 | def 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: |