| 1 |
# RUN: %{lit} --update-tests --ignore-fail -v %S/Inputs/pass-test-update | FileCheck %s --implicit-check-not Exception |
| 2 |
|
| 3 |
# CHECK: UNRESOLVED: pass-test-update :: fail.test (1 of 5) |
| 4 |
# CHECK: ******************** TEST 'pass-test-update :: fail.test' FAILED ******************** |
| 5 |
# CHECK: # {{R}}UN: at line 1 |
| 6 |
# CHECK: not echo "fail" |
| 7 |
# CHECK: # executed command: not echo fail |
| 8 |
# CHECK: # .---command stdout------------ |
| 9 |
# CHECK: # | fail |
| 10 |
# CHECK: # `----------------------------- |
| 11 |
# CHECK: # error: command failed with exit status: 1 |
| 12 |
# CHECK: Exception occurred in test updater: |
| 13 |
# CHECK: Traceback (most recent call last): |
| 14 |
# CHECK: File {{.*}}, line {{.*}}, in {{.*}} |
| 15 |
# CHECK: update_output = test_updater(result, test, commands) |
| 16 |
# CHECK: File "{{.*}}{{/|\\}}should_not_run.py", line {{.*}}, in should_not_run |
| 17 |
# CHECK: raise Exception("this test updater should only run on failure") |
| 18 |
# CHECK: Exception: this test updater should only run on failure |
| 19 |
# CHECK: ******************** |
| 20 |
# CHECK: PASS: pass-test-update :: pass-silent.test (2 of 5) |
| 21 |
# CHECK: PASS: pass-test-update :: pass.test (3 of 5) |
| 22 |
# CHECK: {{X}}FAIL: pass-test-update :: xfail.test (4 of 5) |
| 23 |
# CHECK: XPASS: pass-test-update :: xpass.test (5 of 5) |
| 24 |
# CHECK: ******************** TEST 'pass-test-update :: xpass.test' FAILED ******************** |
| 25 |
# CHECK: Exit Code: 0 |
| 26 |
# CHECK: Command Output (stdout): |
| 27 |
# CHECK: -- |
| 28 |
# CHECK: # {{R}}UN: at line 2 |
| 29 |
# CHECK: echo "accidentally passed" |
| 30 |
# CHECK: # executed command: echo 'accidentally passed' |
| 31 |
# CHECK: # .---command stdout------------ |
| 32 |
# CHECK: # | accidentally passed |
| 33 |
# CHECK: # `----------------------------- |
| 34 |
# CHECK: ******************** |