test/test-functions: do not execute strip_binaries twice
It is called from setup_basic_environment(), which also calls install_symtemd() a bit earlier, so in effect it would be called twice.
This commit is contained in:
parent
ae6c598791
commit
9f927e46ac
|
@ -640,7 +640,8 @@ install_dmevent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_systemd() {
|
install_systemd() {
|
||||||
# install compiled files
|
ddebug "Install compiled systemd"
|
||||||
|
|
||||||
local _ninja_bin=$(type -P ninja || type -P ninja-build)
|
local _ninja_bin=$(type -P ninja || type -P ninja-build)
|
||||||
if [[ -z "$_ninja_bin" ]]; then
|
if [[ -z "$_ninja_bin" ]]; then
|
||||||
dfatal "ninja was not found"
|
dfatal "ninja was not found"
|
||||||
|
@ -649,9 +650,6 @@ install_systemd() {
|
||||||
(set -x; DESTDIR=$initdir "$_ninja_bin" -C $BUILD_DIR install)
|
(set -x; DESTDIR=$initdir "$_ninja_bin" -C $BUILD_DIR install)
|
||||||
# remove unneeded documentation
|
# remove unneeded documentation
|
||||||
rm -fr $initdir/usr/share/{man,doc}
|
rm -fr $initdir/usr/share/{man,doc}
|
||||||
# we strip binaries since debug symbols increase binaries size a lot
|
|
||||||
# and it could fill the available space
|
|
||||||
strip_binaries
|
|
||||||
|
|
||||||
[[ "$LOOKS_LIKE_SUSE" ]] && setup_suse
|
[[ "$LOOKS_LIKE_SUSE" ]] && setup_suse
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue