aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-04-18 18:58:18 +0200
committerChristian Tismer <tismer@stackless.com>2021-10-28 10:59:40 +0200
commit5f44fd68e351e28b90636f34556628f5cda134a9 (patch)
treea179cef39c0920353a59c6bbedbdbfa38525feea /testing
parent3aab0899ef4f966d3a37c0e95b0e7d0f047de3e0 (diff)
PyPySide: add it as a true new build target
PyPy has now an appendix of its name and version at the end of the build path name. There are special settings needed in command.py to locate it in the folder structure. An extra check for PyPy has been added to the test script, because PyPy still has many errors. We use only one test run and extended timeouts until some crucial errors are gone. The blacklist file now understands pypy, pypy.7.3.6 etc. Task-number: PYSIDE-535 Change-Id: Ic2ab88bf35c5a18320733eb2552eca9e4315d04f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'testing')
-rw-r--r--testing/command.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/testing/command.py b/testing/command.py
index 2bed65070..00dcb485c 100644
--- a/testing/command.py
+++ b/testing/command.py
@@ -87,6 +87,7 @@ from .parser import TestParser
COIN_RERUN_FAILED_ONLY = True
COIN_THRESHOLD = 3 # report error if >=
COIN_TESTING = 5 # number of runs
+TIMEOUT = 10 * 60
if os.environ.get("COIN_RERUN_FAILED_ONLY", "1").lower() in "0 f false n no".split():
COIN_RERUN_FAILED_ONLY = False
@@ -95,6 +96,14 @@ if os.environ.get("COIN_RERUN_FAILED_ONLY", "1").lower() in "0 f false n no".spl
def test_project(project, args, blacklist, runs):
ret = []
+ if "pypy" in builds.classifiers:
+ # As long as PyPy has so many bugs, we use 1 test only...
+ global COIN_TESTING
+ COIN_TESTING = runs = 1
+ # ...and extend the timeout.
+ global TIMEOUT
+ TIMEOUT = 100 * 60
+
# remove files from a former run
for idx in range(runs):
index = idx + 1
@@ -120,7 +129,7 @@ def test_project(project, args, blacklist, runs):
break
else:
rerun = None
- runner.run(f"RUN {idx + 1}:", rerun, 10 * 60)
+ runner.run(f"RUN {idx + 1}:", rerun, TIMEOUT)
results = TestParser(runner.logfile)
r = 5 * [0]
rerun_list = []
@@ -154,7 +163,7 @@ def test_project(project, args, blacklist, runs):
print("FATAL ERROR:", fatal)
print("Repetitions cancelled!")
break
- return ret, fatal
+ return ret, fatal, runs
def main():
@@ -285,7 +294,7 @@ def main():
# now loop over the projects and accumulate
fatal = False
for project in args.projects:
- res, fatal = test_project(project, args, bl, runs)
+ res, fatal, runs = test_project(project, args, bl, runs)
if fatal:
runs = 1
for idx, r in enumerate(res):