aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-30 12:55:36 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-30 12:55:36 -0700
commitff75e6bd470dcd5a3c6c8945d43e348192f2c9d5 (patch)
tree52862618fc4170cee39acf5d950894c0b86a11fd
parent31a6579468a7a7cd64adb9112bde325620083189 (diff)
add fingerprint data to benchmarks
-rw-r--r--tests/runner.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 80cb10b5..f97934e9 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4184,7 +4184,21 @@ else:
# Benchmarks. Run them with argument |benchmark|. To run a specific test, do
# |benchmark.test_X|.
- print "Running Emscripten benchmarks..."
+ fingerprint = [time.asctime()]
+ try:
+ fingerprint.append('em: ' + Popen(['git', 'show'], stdout=PIPE).communicate()[0].split('\n')[0])
+ except:
+ pass
+ try:
+ d = os.getcwd()
+ os.chdir(os.path.expanduser('~/Dev/mozilla-central'))
+ fingerprint.append('sm: ' + filter(lambda line: 'changeset' in line,
+ Popen(['hg', 'tip'], stdout=PIPE).communicate()[0].split('\n'))[0])
+ except:
+ pass
+ finally:
+ os.chdir(d)
+ print 'Running Emscripten benchmarks... [ %s ]' % ' | '.join(fingerprint)
sys.argv = filter(lambda x: x != 'benchmark', sys.argv)