Show More
@@ -1373,10 +1373,11 b' class TTest(Test):' | |||
|
1373 | 1373 | lsplit = l.split() |
|
1374 | 1374 | if len(lsplit) < 2 or lsplit[0] != b'#require': |
|
1375 | 1375 | after.setdefault(pos, []).append(' !!! invalid #require\n') |
|
1376 | haveresult, message = self._hghave(lsplit[1:]) | |
|
1377 | if not haveresult: | |
|
1378 | script = [b'echo "%s"\nexit 80\n' % message] | |
|
1379 | break | |
|
1376 | if not skipping: | |
|
1377 | haveresult, message = self._hghave(lsplit[1:]) | |
|
1378 | if not haveresult: | |
|
1379 | script = [b'echo "%s"\nexit 80\n' % message] | |
|
1380 | break | |
|
1380 | 1381 | after.setdefault(pos, []).append(l) |
|
1381 | 1382 | elif l.startswith(b'#if'): |
|
1382 | 1383 | lsplit = l.split() |
@@ -921,16 +921,24 b' Skips' | |||
|
921 | 921 | ================ |
|
922 | 922 | $ cat > test-skip.t <<EOF |
|
923 | 923 | > $ echo xyzzy |
|
924 | > #if true | |
|
924 | 925 | > #require false |
|
926 | > #end | |
|
927 | > EOF | |
|
928 | $ cat > test-noskip.t <<EOF | |
|
929 | > #if false | |
|
930 | > #require false | |
|
931 | > #endif | |
|
925 | 932 | > EOF |
|
926 | 933 | $ rt --nodiff |
|
927 | !.s | |
|
934 | !.s. | |
|
928 | 935 |
|
|
929 | 936 | Failed test-failure.t: output changed |
|
930 |
# Ran |
|
|
937 | # Ran 3 tests, 1 skipped, 1 failed. | |
|
931 | 938 | python hash seed: * (glob) |
|
932 | 939 | [1] |
|
933 | 940 | |
|
941 | $ rm test-noskip.t | |
|
934 | 942 | $ rt --keyword xyzzy |
|
935 | 943 | .s |
|
936 | 944 | Skipped test-skip.t: missing feature: nail clipper |
General Comments 0
You need to be logged in to leave comments.
Login now