#!/usr/bin/env python from __future__ import print_function """ This is what the buildbot runs to execute the lib-python tests on top of pypy-c. """ import json import sys, os import subprocess rootdir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0]))) os.environ['PYTHONPATH'] = rootdir os.environ['PYTEST_PLUGINS'] = '' config_json = subprocess.check_output([sys.executable, 'testrunner/get_info.py']) config_dict = json.loads(config_json) pypyopt = "--pypy=%s" % config_dict['target_path'] popen = subprocess.Popen( [sys.executable, "pypy/test_all.py", pypyopt, "--timeout=1324", # make it easy to search for "-rs", "--duration=10", "--resultlog=cpython.log", "lib-python", ] + sys.argv[1:], cwd=rootdir) try: ret = popen.wait() except KeyboardInterrupt: popen.kill() print("\ninterrupted") ret = 1 sys.exit(ret)