diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-19 19:01:48 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-19 19:01:48 +0300 |
commit | a1d367ba8b72cb72c25c199814a27b8a94df9309 (patch) | |
tree | 0c18836cc284b747e80fb927c2d72bb8dc5c7644 | |
parent | 43ca3e25466b063fa4ec63b59c4379dd38b40183 (diff) | |
download | meson-a1d367ba8b72cb72c25c199814a27b8a94df9309.zip meson-a1d367ba8b72cb72c25c199814a27b8a94df9309.tar.gz meson-a1d367ba8b72cb72c25c199814a27b8a94df9309.tar.bz2 |
Guard against Windows line endings on Windows too.
-rwxr-xr-x | run_tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py index 3fb4675..003bc55 100755 --- a/run_tests.py +++ b/run_tests.py @@ -92,13 +92,14 @@ def run_tests(): [run_test(t) for t in objctests] def check_file(fname): + if fname.endswith('parsetab.py'): # Autogenerated + return True 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 is_sane and b'\r' in line: + if 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 |