diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-08 21:08:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-08 21:08:33 +0300 |
commit | aad21d26393326b61eefaef837aedb17e494f5ee (patch) | |
tree | 673663f68cd77f790cea2e11f1e48bdca0115f5e /mesontest.py | |
parent | af820b77d88be0865169aa7f2f66a60f41675825 (diff) | |
parent | 44c54affda4526a90e20d457786fa6fc2d3cbe06 (diff) | |
download | meson-aad21d26393326b61eefaef837aedb17e494f5ee.zip meson-aad21d26393326b61eefaef837aedb17e494f5ee.tar.gz meson-aad21d26393326b61eefaef837aedb17e494f5ee.tar.bz2 |
Merge pull request #1567 from jon-turney/cygwin
Add Cygwin support
Diffstat (limited to 'mesontest.py')
-rwxr-xr-x | mesontest.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mesontest.py b/mesontest.py index a1708e3..c4d1178 100755 --- a/mesontest.py +++ b/mesontest.py @@ -36,6 +36,10 @@ def is_windows(): platname = platform.system().lower() return platname == 'windows' or 'mingw' in platname +def is_cygwin(): + platname = platform.system().lower() + return 'cygwin' in platname + def determine_worker_count(): varname = 'MESON_TESTTHREADS' if varname in os.environ: @@ -150,7 +154,7 @@ def write_json_log(jsonlogfile, test_name, result): jsonlogfile.write(json.dumps(jresult) + '\n') def run_with_mono(fname): - if fname.endswith('.exe') and not is_windows(): + if fname.endswith('.exe') and not (is_windows() or is_cygwin()): return True return False @@ -202,7 +206,7 @@ class TestHarness: child_env.update(test.env) if len(test.extra_paths) > 0: - child_env['PATH'] += ';'.join([''] + test.extra_paths) + child_env['PATH'] += os.pathsep.join([''] + test.extra_paths) # If MALLOC_PERTURB_ is not set, or if it is set to an empty value, # (i.e., the test or the environment don't explicitly set it), set |