From: Thomas Weißschuh Date: Wed, 21 Jun 2023 12:26:05 +0000 (+0200) Subject: tests: (run.sh) detect builddir from working directory X-Git-Tag: v2.40-rc1~368^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc1d0f8dd1a1f5aa6123f0d5f067143cff93e189;p=thirdparty%2Futil-linux.git tests: (run.sh) detect builddir from working directory This makes it easier to run test.sh from the build directory as everything will work without any parameters irrespective of the build directories name. Signed-off-by: Thomas Weißschuh --- diff --git a/tests/run.sh b/tests/run.sh index 1bfaec514d..214e2fcd6b 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -156,6 +156,8 @@ if [ -z "$top_builddir" ]; then top_builddir="$TS_TOPDIR/.." if [ -e "$top_builddir/build/meson.conf" ]; then top_builddir="$TS_TOPDIR/../build" + elif [ -e "$PWD/meson.conf" ]; then + top_builddir="$PWD" fi fi