From 09a8075e968d12a7217a6044eae256ceb20121bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20Mr=C3=A1zek?= Date: Mon, 13 Apr 2026 15:29:17 +0200 Subject: [PATCH] fixup! fixup! python: modeling: types: added path types --- scripts/poe-tasks/test-unit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/poe-tasks/test-unit b/scripts/poe-tasks/test-unit index 243b6053c..982ac49ee 100755 --- a/scripts/poe-tasks/test-unit +++ b/scripts/poe-tasks/test-unit @@ -3,6 +3,7 @@ test_user="testuser" src_path="$(realpath "$0")" src_dir="$(dirname "$src_path")" +git_root="$(git rev-parse --show-toplevel)" test_dir="tests/python/knot_resolver" ignore="$test_dir/utils/modeling/types/path_testing" @@ -18,7 +19,7 @@ if [ -z "${SWITCHED_USER:-}" ]; then # only works on Debian adduser --disabled-password --gecos "" "$test_user" fi - chown -R $test_user:$test_user $test_dir/utils/modeling/types/prepare_path_testing + chown -R $test_user:$test_user $git_root exec su -m "$test_user" -c "SWITCHED_USER=1 $0" fi fi -- 2.47.3