tests: add STRIP_BINARIES
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 55d4313..961a625 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
 }