From: Ian Jackson Date: Sat, 7 Jan 2023 13:02:04 +0000 (+0000) Subject: tests: Fix $src and $test variables for tests run like test/t-basic X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=ca2256c435eee92fd7c9bcd6963b9390f8c51831;p=hippotat.git tests: Fix $src and $test variables for tests run like test/t-basic Those forms don't have enough / for the pattern to remove. Signed-off-by: Ian Jackson --- diff --git a/test/tcommon b/test/tcommon index 6a780ba..cf78587 100644 --- a/test/tcommon +++ b/test/tcommon @@ -7,8 +7,8 @@ set -o pipefail set -x ssrc="${0%/*}" -src="${ssrc%/*}" -test="${ssrc%/*}/test" +src="$ssrc"/.. +test="$src/test" target_bin_dir=${TARGET_RELEASE_DIR-target/debug} target_bin_prefix=${target_bin_dir}${target_bin_dir+/}