aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-30 23:09:59 -0700
committeralon@honor <none@none>2010-09-30 23:09:59 -0700
commitd5ba1375e1ed15c5a3520ff6dde6f97795f5ee1a (patch)
treeb66e2d920a8eab4c764f4a67324ffcc2da4a91b2
parentf57c6002edde6e92f9aa3dde44e10e9e0bf09023 (diff)
show test names
-rw-r--r--tests/runner.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 8b71b223..d2c5e4f1 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5,7 +5,7 @@ See settings.py file for options&params. Edit as needed.
'''
from subprocess import Popen, PIPE, STDOUT
-import os, unittest, tempfile, shutil, time
+import os, unittest, tempfile, shutil, time, inspect
# Params
@@ -28,6 +28,8 @@ def timeout_run(proc, timeout, note):
class T(unittest.TestCase):
def do_test(self, src, expected_output, args=[], output_nicerizer=None, output_processor=None, no_build=False, main_file=None):
+ if not no_build:
+ print 'Running test:', inspect.stack()[1][3], '[%s]'%COMPILER.split(os.sep)[-1]
global DEBUG
dirname = TEMP_DIR + '/tmp' # tempfile.mkdtemp(dir=TEMP_DIR)
if not os.path.exists(dirname):
@@ -820,5 +822,6 @@ if __name__ == '__main__':
print "Checking for existence of", cmd
assert(os.path.exists(cmd))
print "Running Emscripten tests..."
+ print '', # indent so when next lines have '.', they all align
unittest.main()