aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/python_utils
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-09-26 00:11:51 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-09-26 00:11:51 +0200
commitd8056c5906eb732d8d1f2419f29472d4094d16d3 (patch)
treef1ff2cd3f55a2f87a25ee93ea612647be97061b5 /tools/run_tests/python_utils
parent2488dff74b808faf2e2a46e0f6b3579499b9983f (diff)
rename _tempfile -> _logfile
Diffstat (limited to 'tools/run_tests/python_utils')
-rwxr-xr-xtools/run_tests/python_utils/jobset.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/run_tests/python_utils/jobset.py b/tools/run_tests/python_utils/jobset.py
index a426c6ef9c..b732e1e03e 100755
--- a/tools/run_tests/python_utils/jobset.py
+++ b/tools/run_tests/python_utils/jobset.py
@@ -274,9 +274,9 @@ class Job(object):
os.path.abspath(self._spec.logfilename))
if not os.path.exists(logfile_dir):
os.makedirs(logfile_dir)
- self._tempfile = open(self._spec.logfilename, 'w+')
+ self._logfile = open(self._spec.logfilename, 'w+')
else:
- self._tempfile = tempfile.TemporaryFile()
+ self._logfile = tempfile.TemporaryFile()
env = dict(os.environ)
env.update(self._spec.environ)
env.update(self._add_env)
@@ -292,7 +292,7 @@ class Job(object):
measure_cpu_costs = False
try_start = lambda: subprocess.Popen(args=cmdline,
stderr=subprocess.STDOUT,
- stdout=self._tempfile,
+ stdout=self._logfile,
cwd=self._spec.cwd,
shell=self._spec.shell,
env=env)
@@ -315,7 +315,7 @@ class Job(object):
"""Poll current state of the job. Prints messages at completion."""
def stdout(self=self):
- stdout = read_from_start(self._tempfile)
+ stdout = read_from_start(self._logfile)
self.result.message = stdout[-_MAX_RESULT_SIZE:]
return stdout