summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-02-24 16:03:13 (GMT)
committerMats Wichmann <mats@linux.com>2020-02-24 16:04:05 (GMT)
commit5c969e525aec3323415626d001c3ab28bd8942e4 (patch)
tree6a762eb84f33de397c23b96e8f39dcbfd45e6048
parentb6c8997131e5941aee3f77e8a8e7719e25b96462 (diff)
downloadSCons-5c969e525aec3323415626d001c3ab28bd8942e4.zip
SCons-5c969e525aec3323415626d001c3ab28bd8942e4.tar.gz
SCons-5c969e525aec3323415626d001c3ab28bd8942e4.tar.bz2
Fix runtest no-exec mode
Failure to default some values in class initializer caused a downstream problem if running no-exec mode, as one field was added only if running in execute mode. Signed-off-by: Mats Wichmann <mats@linux.com>
-rwxr-xr-xruntest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtest.py b/runtest.py
index 57b4ba4..70f1385 100755
--- a/runtest.py
+++ b/runtest.py
@@ -368,14 +368,17 @@ class RuntestBase(object):
def __init__(self, path, num, spe=None):
self.path = path
self.num = num
+ self.stdout = self.stderr = self.status = None
self.abspath = os.path.abspath(path)
+ self.command_args = []
+ self.command_str = ""
+ self.test_time = self.total_time = 0
if spe:
for dir in spe:
f = os.path.join(dir, path)
if os.path.isfile(f):
self.abspath = f
break
- self.status = None
class SystemExecutor(RuntestBase):