summaryrefslogtreecommitdiff
path: root/test/run-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/run-tests.py')
-rwxr-xr-xtest/run-tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run-tests.py b/test/run-tests.py
index 4a4496f8..38734a90 100755
--- a/test/run-tests.py
+++ b/test/run-tests.py
@@ -512,6 +512,9 @@ class TestInfo(object):
self.expected_stdout = ''.join(stdout_lines)
self.expected_stderr = ''.join(stderr_lines)
+ if not self.cmds:
+ raise Error('test has no commands')
+
def CreateInputFile(self):
gen_input_path = self.GetGeneratedInputFilename()
gen_input_dir = os.path.dirname(gen_input_path)