From: Evgeny Vereshchagin Date: Mon, 18 Jan 2016 06:45:20 +0000 (+0000) Subject: tests: add STRIP_BINARIES X-Git-Tag: v229~133^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2349%2Fhead;p=thirdparty%2Fsystemd.git tests: add STRIP_BINARIES We need a beautiful stacktraces sometimes For example https://github.com/systemd/systemd/pull/2328 --- diff --git a/test/test-functions b/test/test-functions index 55d43134ea7..961a6254d89 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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 }