summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-03-25 16:18:12 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2021-03-30 00:48:06 -0400
commit79448c3064fa2fdb51f1deddb095b47d61f10fca (patch)
tree3a0bbd45f828baa3b2d9b0d73fb2c2ffa7ece8be
parent21790451f064e67c449657a7395397a82e9bcc47 (diff)
downloadhaskell-79448c3064fa2fdb51f1deddb095b47d61f10fca.tar.gz
[testlib] ignore strip warnings
(cherry picked from commit 4bc31a87db3c89212740e8b176114be8723b27ab)
-rw-r--r--testsuite/driver/testlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 3c82a7de2f..b76f02f3a4 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -2245,6 +2245,8 @@ def normalise_errmsg(s: str) -> str:
s = re.sub('You are using an unsupported version of LLVM!.*\n','',s)
s = re.sub('Currently only [\.0-9]+ is supported. System LLVM version: [\.0-9]+.*\n','',s)
s = re.sub('We will try though\.\.\..*\n','',s)
+ # ignore warning about strip invalidating signatures
+ s = re.sub('.*strip: changes being made to the file will invalidate the code signature in.*\n','',s)
return s
# normalise a .prof file, so that we can reasonably compare it against
@@ -2326,6 +2328,8 @@ def normalise_output( s: str ) -> str:
s = re.sub('You are using an unsupported version of LLVM!.*\n','',s)
s = re.sub('Currently only [\.0-9]+ is supported. System LLVM version: [\.0-9]+.*\n','',s)
s = re.sub('We will try though\.\.\..*\n','',s)
+ # ignore warning about strip invalidating signatures
+ s = re.sub('.*strip: changes being made to the file will invalidate the code signature in.*\n','',s)
return s