]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: add STRIP_BINARIES 2349/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 18 Jan 2016 06:45:20 +0000 (06:45 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 18 Jan 2016 07:27:49 +0000 (07:27 +0000)
We need a beautiful stacktraces sometimes
For example https://github.com/systemd/systemd/pull/2328

test/test-functions

index 55d43134ea7be0e6c6604e4a8a22c0b47d06558c..961a6254d8920629fd7e94940078fa6acaa92f29 100644 (file)
@@ -212,6 +212,10 @@ check_result_nspawn() {
 }
 
 strip_binaries() {
+    if [[ "$STRIP_BINARIES" = "no" ]]; then
+        ddebug "Don't strip binaries"
+        return 0
+    fi
     ddebug "Strip binaries"
     find "$initdir" -executable -not -path '*/lib/modules/*.ko' -type f | xargs strip --strip-unneeded | ddebug
 }