|
22 | 22 | # RUN: not %{lit} %{inputs}/allow-retries/does-not-succeed-within-limit.py -v |\ |
23 | 23 | # RUN: FileCheck --check-prefix=CHECK-TEST3 -match-full-lines %s |
24 | 24 | # |
25 | | -# CHECK-TEST3: FAIL: allow-retries :: does-not-succeed-within-limit.py (1 of 1) |
| 25 | +# CHECK-TEST3: FAIL: allow-retries :: does-not-succeed-within-limit.py (1 of 1, 4 of 4 attempts) |
26 | 26 | # CHECK-TEST3-NEXT: {{\**}} TEST 'allow-retries :: does-not-succeed-within-limit.py' FAILED {{\**}} |
27 | 27 | # CHECK-TEST3-NEXT: Exit Code: 1 |
28 | 28 | # CHECK-TEST3-EMPTY: |
|
72 | 72 | # CHECK-TEST7: Passed With Retry: 1 |
73 | 73 |
|
74 | 74 | # This test only passes on the 4th try. Here we check that a test can be re-run when: |
75 | | -# * The "--max-retries-per-test" is specified high enough (3). |
| 75 | +# * The "--max-retries-per-test" is specified high enough (7). |
76 | 76 | # * No ALLOW_RETRIES keyword is used in the test script. |
77 | 77 | # * No config.test_retry_attempts is adjusted in the test suite config file. |
78 | 78 | # RUN: rm -f %t.counter |
79 | 79 | # RUN: %{lit} %{inputs}/max-retries-per-test/no-allow-retries-no-test_retry_attempts/test.py \ |
80 | | -# RUN: --max-retries-per-test=3 \ |
| 80 | +# RUN: --max-retries-per-test=7 \ |
81 | 81 | # RUN: -Dcounter=%t.counter \ |
82 | 82 | # RUN: -Dpython=%{python} \ |
83 | 83 | # RUN: | FileCheck --check-prefix=CHECK-TEST8 %s |
| 84 | +# CHECK-TEST8: FLAKYPASS: no-allow-retries-no-test_retry_attempts :: test.py (1 of 1, 4 of 8 attempts) |
84 | 85 | # CHECK-TEST8: Passed With Retry: 1 |
85 | 86 |
|
86 | 87 | # This test only passes on the 4th try. Here we check that a test can be re-run when: |
87 | 88 | # * The "--max-retries-per-test" is specified too low (2). |
88 | | -# * ALLOW_RETRIES is specified high enough (3) |
| 89 | +# * ALLOW_RETRIES is specified high enough (8) |
89 | 90 | # * No config.test_retry_attempts is adjusted in the test suite config file. |
90 | 91 | # RUN: rm -f %t.counter |
91 | 92 | # RUN: %{lit} %{inputs}/max-retries-per-test/allow-retries-no-test_retry_attempts/test.py \ |
92 | 93 | # RUN: --max-retries-per-test=2 \ |
93 | 94 | # RUN: -Dcounter=%t.counter \ |
94 | 95 | # RUN: -Dpython=%{python} \ |
95 | 96 | # RUN: | FileCheck --check-prefix=CHECK-TEST9 %s |
| 97 | +# CHECK-TEST9: FLAKYPASS: allow-retries-no-test_retry_attempts :: test.py (1 of 1, 4 of 9 attempts) |
96 | 98 | # CHECK-TEST9: Passed With Retry: 1 |
97 | 99 |
|
98 | 100 | # This test only passes on the 4th try. Here we check that a test can be re-run when: |
99 | 101 | # * The "--max-retries-per-test" is specified too low (2). |
100 | 102 | # * No ALLOW_RETRIES keyword is used in the test script. |
101 | | -# * config.test_retry_attempts is set high enough (3). |
| 103 | +# * config.test_retry_attempts is set high enough (9). |
102 | 104 | # RUN: rm -f %t.counter |
103 | 105 | # RUN: %{lit} %{inputs}/max-retries-per-test/no-allow-retries-test_retry_attempts/test.py \ |
104 | 106 | # RUN: --max-retries-per-test=2 \ |
105 | 107 | # RUN: -Dcounter=%t.counter \ |
106 | 108 | # RUN: -Dpython=%{python} \ |
107 | 109 | # RUN: | FileCheck --check-prefix=CHECK-TEST10 %s |
| 110 | +# CHECK-TEST10: FLAKYPASS: no-allow-retries-test_retry_attempts :: test.py (1 of 1, 4 of 10 attempts) |
108 | 111 | # CHECK-TEST10: Passed With Retry: 1 |
109 | 112 |
|
110 | 113 | # This test only passes on the 4th try. Here we check that a test can be re-run when: |
111 | 114 | # * The "--max-retries-per-test" is specified too low (1). |
112 | | -# * ALLOW_RETRIES keyword set high enough (3). |
113 | | -# * config.test_retry_attempts is set too low enough (2). |
| 115 | +# * ALLOW_RETRIES keyword is set high enough (10) |
| 116 | +# * config.test_retry_attempts is set too low (2). |
114 | 117 | # RUN: rm -f %t.counter |
115 | | -# RUN: %{lit} %{inputs}/max-retries-per-test/no-allow-retries-test_retry_attempts/test.py \ |
| 118 | +# RUN: %{lit} %{inputs}/max-retries-per-test/allow-retries-test_retry_attempts/test.py \ |
116 | 119 | # RUN: --max-retries-per-test=1 \ |
117 | 120 | # RUN: -Dcounter=%t.counter \ |
118 | 121 | # RUN: -Dpython=%{python} \ |
119 | 122 | # RUN: | FileCheck --check-prefix=CHECK-TEST11 %s |
| 123 | +# CHECK-TEST11: FLAKYPASS: allow-retries-test_retry_attempts :: test.py (1 of 1, 4 of 11 attempts) |
120 | 124 | # CHECK-TEST11: Passed With Retry: 1 |
0 commit comments