35 lines · python
1# RUN: %{lit} --update-tests --ignore-fail -v %S/Inputs/pass-test-update | FileCheck %s --implicit-check-not Exception2 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 16# CHECK: not echo "fail"7# CHECK: # executed command: not echo fail8# CHECK: # .---command stdout------------9# CHECK: # | fail10# CHECK: # `-----------------------------11# CHECK: # error: command failed with exit status: 112# 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_run17# CHECK: raise Exception("this test updater should only run on failure")18# CHECK: Exception: this test updater should only run on failure19# 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: 026# CHECK: Command Output (stdout):27# CHECK: --28# CHECK: # {{R}}UN: at line 229# CHECK: echo "accidentally passed"30# CHECK: # executed command: echo 'accidentally passed'31# CHECK: # .---command stdout------------32# CHECK: # | accidentally passed33# CHECK: # `-----------------------------34# CHECK: ********************35