From ca2256c435eee92fd7c9bcd6963b9390f8c51831 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 7 Jan 2023 13:02:04 +0000 Subject: [PATCH] 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 --- test/tcommon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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+/} -- 2.30.2