From 36ce0c2501662e4eda2db6642af6d42241c59ca3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 21 Jun 2023 14:26:05 +0200 Subject: [PATCH] tests: (run.sh) detect builddir from working directory MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- tests/run.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.2