]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: filter out messages when stripping binaries
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2019 13:06:34 +0000 (15:06 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Apr 2019 06:23:41 +0000 (08:23 +0200)
We would get an error for every script, which is just noise.

test/test-functions

index 7179f70e46c2e63c97ddaf254fb211e10150dc32..6016fd21ace53b8d99fc727cf102cc2655f9a2b5 100644 (file)
@@ -560,7 +560,10 @@ strip_binaries() {
         return 0
     fi
     ddebug "Strip binaries"
-    find "$initdir" -executable -not -path '*/lib/modules/*.ko' -type f | xargs strip --strip-unneeded | ddebug
+    find "$initdir" -executable -not -path '*/lib/modules/*.ko' -type f | \
+        xargs strip --strip-unneeded |& \
+        grep -v 'file format not recognized' | \
+        ddebug
 }
 
 create_rc_local() {