From: Aleš Mrázek Date: Mon, 13 Apr 2026 13:29:17 +0000 (+0200) Subject: fixup! fixup! python: modeling: types: added path types X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fpython-refactoring-modeling;p=thirdparty%2Fknot-resolver.git fixup! fixup! python: modeling: types: added path types --- 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