tests: add STRIP_BINARIES

We need a beautiful stacktraces sometimes
For example https://github.com/systemd/systemd/pull/2328
This commit is contained in:
Evgeny Vereshchagin 2016-01-18 06:45:20 +00:00
parent b46f4ef107
commit 5a613464fa
1 changed files with 4 additions and 0 deletions

View 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
}