diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-01-18 06:45:20 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2016-01-18 07:27:49 +0000 |
commit | 5a613464fa15c0960b418322f592a24b9e0f7455 (patch) | |
tree | b088dd30eaebc354ac860bc66c865b397f664217 /test/test-functions | |
parent | b46f4ef10734739f50af16b4df44498fd8518e4d (diff) |
tests: add STRIP_BINARIES
We need a beautiful stacktraces sometimes
For example https://github.com/systemd/systemd/pull/2328
Diffstat (limited to 'test/test-functions')
-rw-r--r-- | test/test-functions | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions index 55d43134ea..961a6254d8 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 } |