diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-04-01 23:27:50 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-04-01 23:27:50 +0300 |
commit | e522a9f2684e38955aefda3b4413a78997ccdbc9 (patch) | |
tree | edc1271cc5d0ea4c3ae466d245d60ee34b4b87ba /run_tests.py | |
parent | a7e93012157ed1f49b35fd4a8cf2b4719083cb08 (diff) | |
download | meson-e522a9f2684e38955aefda3b4413a78997ccdbc9.zip meson-e522a9f2684e38955aefda3b4413a78997ccdbc9.tar.gz meson-e522a9f2684e38955aefda3b4413a78997ccdbc9.tar.bz2 |
Fix Windows. Again.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py index 978625a..52111ac 100755 --- a/run_tests.py +++ b/run_tests.py @@ -309,10 +309,20 @@ def run_tests(extra_args): # and getting it wrong by not doing logical number sorting. (testnum, testbase) = os.path.split(t)[-1].split(' ', 1) testname = '%.3d %s' % (int(testnum), testbase) - result = executor.submit(run_test, skipped, t, extra_args, name != 'failing') + # Windows errors out when calling result.result() below with + # a bizarre error about appending None to an array that comes + # from the standard library. This is probably either because I use + # XP or the Python version is old. Anyhow, fall back to immediate + # evaluation. This causes output not to be printed until the end, + # which is unfortunate but least it works. + if mesonlib.is_windows(): + result = run_test(skipped, t, extra_args, name != 'failing') + else: + result = executor.submit(run_test, skipped, t, extra_args, name != 'failing') futures.append((testname, t, result)) for (testname, t, result) in futures: - result = result.result() + if not mesonlib.is_windows(): # See above. + result = result.result() if result is None: print('Skipping:', t) current_test = ET.SubElement(current_suite, 'testcase', {'name' : testname, |