From cb8db5d30ee769304c2c2b00f2a7d9bcb3c4098f Mon Sep 17 00:00:00 2001 From: Jonathan Herman Date: Mon, 26 Nov 2012 16:02:48 -0500 Subject: Removed 2-step parse for scheduling statistics. --- experiment/executable/executable.py | 10 +++++----- experiment/executable/ftcat.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'experiment/executable') diff --git a/experiment/executable/executable.py b/experiment/executable/executable.py index b964699..628f711 100644 --- a/experiment/executable/executable.py +++ b/experiment/executable/executable.py @@ -4,7 +4,7 @@ import signal from ..litmus_util import is_executable class Executable(object): - """Parent object that represents an executable for use in task-sets.""" + '''Parent object that represents an executable for use in task-sets.''' def __init__(self, exec_file, extra_args=None, stdout_file = None, stderr_file = None): self.exec_file = exec_file @@ -47,7 +47,7 @@ class Executable(object): return " ".join(self.__get_full_command()) def execute(self): - """Execute the binary.""" + '''Execute the binary.''' full_command = self.__get_full_command() self.sp = subprocess.Popen(full_command, stdout=self.stdout_file, stderr=self.stderr_file, cwd=self.cwd) @@ -59,15 +59,15 @@ class Executable(object): self.sp.send_signal(signal.SIGINT) def terminate(self): - """Send the terminate signal to the binary.""" + '''Send the terminate signal to the binary.''' self.sp.terminate() def wait(self): - """Wait until the executable is finished, checking return code. + '''Wait until the executable is finished, checking return code. If the exit status is non-zero, raise an exception. - """ + ''' self.sp.wait() if self.sp.returncode != 0: diff --git a/experiment/executable/ftcat.py b/experiment/executable/ftcat.py index 9966312..5da8fa7 100644 --- a/experiment/executable/ftcat.py +++ b/experiment/executable/ftcat.py @@ -4,10 +4,10 @@ import stat from executable import Executable class FTcat(Executable): - """Used to wrap the ftcat binary in the Experiment object.""" + '''Used to wrap the ftcat binary in the Experiment object.''' def __init__(self, ft_cat_bin, stdout_file, stderr_file, dev, events, cpu=None): - """Extends the Executable initializer method with ftcat attributes.""" + '''Extends the Executable initializer method with ftcat attributes.''' # hack to run FTCat at higher priority chrt_bin = '/usr/bin/chrt' -- cgit v1.2.2