summaryrefslogtreecommitdiff
path: root/test/run-tests.py
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2018-01-25 15:47:17 -0800
committerGitHub <noreply@github.com>2018-01-25 15:47:17 -0800
commit77eb57115bfec040de8486ea337012a2e1c2229d (patch)
treea73edb1e8803f2c20a9dbd144e56fe58a0b6f614 /test/run-tests.py
parent207be26047494412c54a7c7a36ace690e6da6a7e (diff)
downloadwabt-77eb57115bfec040de8486ea337012a2e1c2229d.tar.gz
wabt-77eb57115bfec040de8486ea337012a2e1c2229d.tar.bz2
wabt-77eb57115bfec040de8486ea337012a2e1c2229d.zip
`wat2wasm` is no longer default TOOL for tests (#735)
The TOOL must specified explicitly.
Diffstat (limited to 'test/run-tests.py')
-rwxr-xr-xtest/run-tests.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/run-tests.py b/test/run-tests.py
index 85068b95..4a4496f8 100755
--- a/test/run-tests.py
+++ b/test/run-tests.py
@@ -416,8 +416,6 @@ class TestInfo(object):
return self.cmds[index]
def GetLastCommand(self):
- if not self.cmds:
- self.SetTool('wat2wasm')
return self.cmds[-1]
def AppendArgsToAllCommands(self, args):
@@ -514,11 +512,6 @@ class TestInfo(object):
self.expected_stdout = ''.join(stdout_lines)
self.expected_stderr = ''.join(stderr_lines)
- # If the test didn't specify a executable (either via RUN or indirectly
- # via TOOL, then use the default tool)
- if not self.cmds:
- self.SetTool('wat2wasm')
-
def CreateInputFile(self):
gen_input_path = self.GetGeneratedInputFilename()
gen_input_dir = os.path.dirname(gen_input_path)
@@ -924,7 +917,8 @@ def main(args):
if status.failed:
sys.stderr.write('**** FAILED %s\n' % ('*' * (80 - 14)))
for info, result in status.failed_tests:
- sys.stderr.write('- %s\n %s\n' % (info.GetName(), result.last_cmd))
+ last_cmd = result.last_cmd if result is not None else ''
+ sys.stderr.write('- %s\n %s\n' % (info.GetName(), last_cmd))
ret = 1
return ret