summaryrefslogtreecommitdiff
path: root/framework/process.py
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-11-30 02:01:38 -0800
committerKenneth Graunke <kenneth@whitecape.org>2012-11-30 02:01:38 -0800
commitc8cb3ba54e827c0400db30b4440384cc888ec8af (patch)
tree5cd69751641b48930169d527b4265755bd858610 /framework/process.py
parentfa010f88017958f2861b4ac7231fbaf6cd2a5695 (diff)
guard against out/err not being set during timeout.
Diffstat (limited to 'framework/process.py')
-rw-r--r--framework/process.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/process.py b/framework/process.py
index 790d748..efe2b26 100644
--- a/framework/process.py
+++ b/framework/process.py
@@ -44,6 +44,8 @@ def runProgram(cmd, timeout, env = None):
else:
fullEnv = os.environ
+ out = ''
+ err = ''
try:
proc = Popen(cmd, stdout=PIPE, stderr=PIPE, env=fullEnv,
start_new_session=True, universal_newlines=True)