aboutsummaryrefslogtreecommitdiffstats
path: root/run
diff options
context:
space:
mode:
authorBryan Ward <bcw@cs.unc.edu>2013-04-17 16:36:58 -0400
committerBryan Ward <bcw@cs.unc.edu>2013-04-17 16:36:58 -0400
commitb8f3c7a1ccd2fffc54f15e808505a568ce5fa492 (patch)
treedf2a20912c6604d398da508bc818a6bb67b5f90f /run
parentb1860fce856c1d579008bc30cbf3513a860c3e69 (diff)
parent2a4b1c11751632dcc1f47c3c13ab2e2a718b883c (diff)
Merge branch 'master' of github.com:hermanjl/experiment-scripts
Diffstat (limited to 'run')
-rw-r--r--run/executable/executable.py5
-rw-r--r--run/tracer.py4
2 files changed, 5 insertions, 4 deletions
diff --git a/run/executable/executable.py b/run/executable/executable.py
index 263e305..e6f2003 100644
--- a/run/executable/executable.py
+++ b/run/executable/executable.py
@@ -6,9 +6,10 @@ from common import get_executable
6class Executable(object): 6class Executable(object):
7 '''Parent object that represents an executable for use in task-sets.''' 7 '''Parent object that represents an executable for use in task-sets.'''
8 8
9 def __init__(self, exec_file, extra_args=None, stdout_file = None, stderr_file = None): 9 def __init__(self, exec_file, extra_args=None, stdout_file = None,
10 stderr_file = None, cwd = None):
10 self.exec_file = get_executable(exec_file) 11 self.exec_file = get_executable(exec_file)
11 self.cwd = None 12 self.cwd = cwd
12 self.stdout_file = stdout_file 13 self.stdout_file = stdout_file
13 self.stderr_file = stderr_file 14 self.stderr_file = stderr_file
14 self.sp = None 15 self.sp = None
diff --git a/run/tracer.py b/run/tracer.py
index 6e1d05c..5e92a74 100644
--- a/run/tracer.py
+++ b/run/tracer.py
@@ -38,8 +38,8 @@ class LinuxTracer(Tracer):
38 stdout = open('%s/trace-cmd-stdout.txt' % self.output_dir, 'w') 38 stdout = open('%s/trace-cmd-stdout.txt' % self.output_dir, 'w')
39 stderr = open('%s/trace-cmd-stderr.txt' % self.output_dir, 'w') 39 stderr = open('%s/trace-cmd-stderr.txt' % self.output_dir, 'w')
40 40
41 execute = Executable(conf.BINS['trace-cmd'], extra_args, stdout, stderr) 41 execute = Executable(conf.BINS['trace-cmd'], extra_args,
42 execute.cwd = output_dir 42 stdout, stderr, output_dir)
43 self.bins.append(execute) 43 self.bins.append(execute)
44 44
45 @staticmethod 45 @staticmethod