[llvm] 98504fb - Make shtest-format.py CHECK lines more flexible

Douglas Yung via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 10 13:50:28 PST 2022


Author: Douglas Yung
Date: 2022-02-10T13:50:10-08:00
New Revision: 98504fbb3d18819ba851c89460e81a188602149e

URL: https://github.com/llvm/llvm-project/commit/98504fbb3d18819ba851c89460e81a188602149e
DIFF: https://github.com/llvm/llvm-project/commit/98504fbb3d18819ba851c89460e81a188602149e.diff

LOG: 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

Added: 
    

Modified: 
    llvm/utils/lit/tests/shtest-format.py

Removed: 
    


################################################################################
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


        


More information about the llvm-commits mailing list