From 98504fbb3d18819ba851c89460e81a188602149e Mon Sep 17 00:00:00 2001 From: Douglas Yung Date: Thu, 10 Feb 2022 13:47:04 -0800 Subject: [PATCH] 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 --- llvm/utils/lit/tests/shtest-format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/utils/lit/tests/shtest-format.py b/llvm/utils/lit/tests/shtest-format.py index f39d77923849..363094aad95f 100644 --- a/llvm/utils/lit/tests/shtest-format.py +++ b/llvm/utils/lit/tests/shtest-format.py @@ -17,7 +17,8 @@ # CHECK-NEXT: line 2: failed test output on stdout # CHECK: Command Output (stderr): # 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: FAIL: shtest-format :: external_shell/fail_with_bad_encoding.txt