summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-03-25 16:18:12 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-29 17:25:49 -0400
commit4bbd1445e193bc314073e83820caa393567fcd25 (patch)
tree6c3695a972a6641dd6564f4a0ad761efe0016957
parent09ea36cffad34ac5cc2548863cebcfcc8e405a20 (diff)
downloadhaskell-4bbd1445e193bc314073e83820caa393567fcd25.tar.gz
[testlib] ignore strip warnings
-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