aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Lamy <ronan.lamy@gmail.com>2017-11-06 16:15:11 +0000
committerRonan Lamy <ronan.lamy@gmail.com>2017-11-06 16:15:11 +0000
commit4919b2d292fa03dd20c37fe3ba512a443fa840f7 (patch)
tree05e03605e8ae17526acbd448170500c300935064 /testrunner
parentadd method used in matplotlib (diff)
downloadpypy-4919b2d292fa03dd20c37fe3ba512a443fa840f7.tar.gz
pypy-4919b2d292fa03dd20c37fe3ba512a443fa840f7.tar.bz2
pypy-4919b2d292fa03dd20c37fe3ba512a443fa840f7.zip
Add testrunner/get_info.py script for the buildbot
Diffstat (limited to 'testrunner')
-rw-r--r--testrunner/get_info.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/testrunner/get_info.py b/testrunner/get_info.py
new file mode 100644
index 0000000000..50b0cd192b
--- /dev/null
+++ b/testrunner/get_info.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+"""
+Dump some translation information to stdout as JSON. Used by buildbot.
+"""
+
+import sys
+import os
+import json
+
+BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+TARGET_BASENAME = 'pypy-c'
+
+def make_info_dict():
+ target = TARGET_BASENAME
+ if sys.platform.startswith('win'):
+ target += '.exe'
+ target_path = os.path.join(BASE_DIR, 'pypy', 'goal', target)
+ return {'target_path': target_path}
+
+def dump_info():
+ return json.dumps(make_info_dict())
+
+if __name__ == '__main__':
+ print dump_info()