Show More
@@ -928,9 +928,9 b' class TTest(Test):' | |||
|
928 | 928 | inpython = False |
|
929 | 929 | |
|
930 | 930 | if self._debug: |
|
931 | script.append('set -x\n') | |
|
931 | script.append(b'set -x\n') | |
|
932 | 932 | if os.getenv('MSYSTEM'): |
|
933 | script.append('alias pwd="pwd -W"\n') | |
|
933 | script.append(b'alias pwd="pwd -W"\n') | |
|
934 | 934 | |
|
935 | 935 | for n, l in enumerate(lines): |
|
936 | 936 | if not l.endswith(b'\n'): |
@@ -940,7 +940,7 b' class TTest(Test):' | |||
|
940 | 940 | if len(lsplit) < 2 or lsplit[0] != b'#require': |
|
941 | 941 | after.setdefault(pos, []).append(' !!! invalid #require\n') |
|
942 | 942 | if not self._hghave(lsplit[1:]): |
|
943 | script = ["exit 80\n"] | |
|
943 | script = [b"exit 80\n"] | |
|
944 | 944 | break |
|
945 | 945 | after.setdefault(pos, []).append(l) |
|
946 | 946 | elif l.startswith(b'#if'): |
@@ -979,15 +979,15 b' class TTest(Test):' | |||
|
979 | 979 | script.append(l[2:]) |
|
980 | 980 | elif l.startswith(b' $ '): # commands |
|
981 | 981 | if inpython: |
|
982 | script.append('EOF\n') | |
|
982 | script.append(b'EOF\n') | |
|
983 | 983 | inpython = False |
|
984 | 984 | after.setdefault(pos, []).append(l) |
|
985 | 985 | prepos = pos |
|
986 | 986 | pos = n |
|
987 | 987 | addsalt(n, False) |
|
988 | 988 | cmd = l[4:].split() |
|
989 | if len(cmd) == 2 and cmd[0] == 'cd': | |
|
990 | l = ' $ cd %s || exit 1\n' % cmd[1] | |
|
989 | if len(cmd) == 2 and cmd[0] == b'cd': | |
|
990 | l = b' $ cd %s || exit 1\n' % cmd[1] | |
|
991 | 991 | script.append(l[4:]) |
|
992 | 992 | elif l.startswith(b' > '): # continuations |
|
993 | 993 | after.setdefault(prepos, []).append(l) |
@@ -997,13 +997,13 b' class TTest(Test):' | |||
|
997 | 997 | expected.setdefault(pos, []).append(l[2:]) |
|
998 | 998 | else: |
|
999 | 999 | if inpython: |
|
1000 | script.append('EOF\n') | |
|
1000 | script.append(b'EOF\n') | |
|
1001 | 1001 | inpython = False |
|
1002 | 1002 | # Non-command/result. Queue up for merged output. |
|
1003 | 1003 | after.setdefault(pos, []).append(l) |
|
1004 | 1004 | |
|
1005 | 1005 | if inpython: |
|
1006 | script.append('EOF\n') | |
|
1006 | script.append(b'EOF\n') | |
|
1007 | 1007 | if skipping is not None: |
|
1008 | 1008 | after.setdefault(pos, []).append(' !!! missing #endif\n') |
|
1009 | 1009 | addsalt(n + 1, False) |
General Comments 0
You need to be logged in to leave comments.
Login now