aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-04-19 18:24:48 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-04-19 18:24:48 +0300
commita7b7e4b235e6aebdd8e2f789ec21faaed9144033 (patch)
treef532fa0b2221b9c4fe1dd8de0d0d7f3cfb86df31 /run_tests.py
parentabe653e808a67d962054c70e56d632a0215a3fd2 (diff)
downloadmeson-a7b7e4b235e6aebdd8e2f789ec21faaed9144033.zip
meson-a7b7e4b235e6aebdd8e2f789ec21faaed9144033.tar.gz
meson-a7b7e4b235e6aebdd8e2f789ec21faaed9144033.tar.bz2
Added a Windows test.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_tests.py b/run_tests.py
index e5fe347..3fb4675 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -93,11 +93,12 @@ def run_tests():
def check_file(fname):
linenum = 0
+ is_sane = not environment.is_windows()
for line in open(fname, 'rb').readlines():
if b'\t' in line:
print("File %s contains a literal tab on line %d. Only spaces are permitted." % (fname, linenum))
sys.exit(1)
- if b'\r' in line:
+ if is_sane and b'\r' in line:
print("File %s contains DOS line ending on line %d. Only unix-style line endings are permitted." % (fname, linenum))
sys.exit(1)
linenum += 1