aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-08-25 23:09:54 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-08-25 23:09:54 +0300
commit9d559b2b39d4ba084ad479bfb3100b62c13c7d61 (patch)
tree842b1df6ddcb19125925b7794fd7ca22996a5b5f /run_tests.py
parentc19570654cf8d7c00d8b8d96bb8d3f3cf0e68d1e (diff)
downloadmeson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.zip
meson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.tar.gz
meson-9d559b2b39d4ba084ad479bfb3100b62c13c7d61.tar.bz2
More robust windows detection and more logs.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/run_tests.py b/run_tests.py
index 673c55b..7d5f92f 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -15,7 +15,7 @@
# limitations under the License.
from glob import glob
-import os, subprocess, shutil, sys, platform, signal
+import os, subprocess, shutil, sys, signal
from io import StringIO
import sys
import environment
@@ -91,11 +91,11 @@ def setup_commands(backend):
install_commands = [ninja_command, 'install']
def platform_fix_filename(fname):
- if platform.system() == 'Darwin':
+ if mesonlib.is_osx():
if fname.endswith('.so'):
return fname[:-2] + 'dylib'
return fname.replace('.so.', '.dylib.')
- elif platform.system() == 'Windows':
+ elif mesonlib.is_windows():
if fname.endswith('.so'):
(p, f) = os.path.split(fname)
f = f[3:-2] + 'dll'
@@ -105,7 +105,7 @@ def platform_fix_filename(fname):
return fname
def validate_install(srcdir, installdir):
- if platform.system() == 'Windows':
+ if mesonlib.is_windows():
# Don't really know how Windows installs should work
# so skip.
return ''