From: Serge Hallyn Date: Sun, 19 Apr 2020 04:32:59 +0000 (-0500) Subject: tests: use git to determine top_dir X-Git-Tag: v4.9~72^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=316a153abb553fbcff722924a3877c312717227a;p=thirdparty%2Fshadow.git tests: use git to determine top_dir Signed-off-by: Serge Hallyn --- diff --git a/tests/common/config.sh b/tests/common/config.sh index 9b504852f..b92436c5b 100644 --- a/tests/common/config.sh +++ b/tests/common/config.sh @@ -2,7 +2,7 @@ set -e -build_path=/root/build/shadow-4.1.5/ +build_path=$(git rev-parse --show-toplevel) # Save the configuration files in tmp. save_config ()