[llvm] [AIX] [lit] Fix shtest-format.py to account for behaviour on AIX (PR #121426)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 31 23:20:09 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-testing-tools

Author: Mark Danial (madanial0)

<details>
<summary>Changes</summary>

The changes from https://github.com/llvm/llvm-project/pull/121376 has broken the ppc64 aix bot: https://lab.llvm.org/buildbot/#/builders/64/builds/1835. Adjusted the testcase to account for `cat` behaviour on AIX prior to the changes

---
Full diff: https://github.com/llvm/llvm-project/pull/121426.diff


1 Files Affected:

- (modified) llvm/utils/lit/tests/shtest-format.py (+1-1) 


``````````diff
diff --git a/llvm/utils/lit/tests/shtest-format.py b/llvm/utils/lit/tests/shtest-format.py
index d58973993b272a..fda3ef52e8043b 100644
--- a/llvm/utils/lit/tests/shtest-format.py
+++ b/llvm/utils/lit/tests/shtest-format.py
@@ -18,7 +18,7 @@
 # CHECK: Command Output (stderr):
 # CHECK-NEXT: --
 # CHECK-NOT: --
-# CHECK: cat{{(_64)?(\.exe)?}}: {{.*does-not-exist.*}}: No such file or directory
+# 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

``````````

</details>


https://github.com/llvm/llvm-project/pull/121426


More information about the llvm-commits mailing list