Make shtest-format.py CHECK lines more flexible

The test sometimes fails on Windows due to a warning emitted by bash about not
being able to find the /tmp directory causing this test to randomly fail. This
update makes the test more flexible to account for this possibility and should
hopefully make it more reliable.

Reviewed By: probinson

Differential Revision: https://reviews.llvm.org/D118691
This commit is contained in:
Douglas Yung 2022-02-10 13:47:04 -08:00
parent 957b24ca9f
commit 98504fbb3d
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@
# CHECK-NEXT: line 2: failed test output on stdout # CHECK-NEXT: line 2: failed test output on stdout
# CHECK: Command Output (stderr): # CHECK: Command Output (stderr):
# CHECK-NEXT: -- # CHECK-NEXT: --
# CHECK-NEXT: cat{{(_64)?(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}} # CHECK-NOT: --
# CHECK: cat{{(_64)?(\.exe)?}}: {{cannot open does-not-exist|does-not-exist: No such file or directory}}
# CHECK: -- # CHECK: --
# CHECK: FAIL: shtest-format :: external_shell/fail_with_bad_encoding.txt # CHECK: FAIL: shtest-format :: external_shell/fail_with_bad_encoding.txt