]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: when stripping binaries, ignore case in suppressing "File format not recognized"
authorDan Streetman <ddstreet@canonical.com>
Sat, 13 Jul 2019 17:29:48 +0000 (13:29 -0400)
committerDan Streetman <ddstreet@canonical.com>
Tue, 16 Jul 2019 22:05:15 +0000 (18:05 -0400)
The grep -v matches all lowercase, but "file" is captialized; just ignore case so
it's suppressed for either all lowercase or capital File.

test/test-functions

index 17cb22be762055bde7b08cb72513f180a21c0770..89fa16384518d26c69fb62f5f79e65a4f18ad772 100644 (file)
@@ -642,7 +642,7 @@ strip_binaries() {
     ddebug "Strip binaries"
     find "$initdir" -executable -not -path '*/lib/modules/*.ko' -type f | \
         xargs strip --strip-unneeded |& \
-        grep -v 'file format not recognized' | \
+        grep -vi 'file format not recognized' | \
         ddebug
 }