]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
fixup! fixup! python: modeling: types: added path types docs-python-refac-hoq9jw/deployments/8856 python-refactoring-modeling
authorAleš Mrázek <ales.mrazek@nic.cz>
Mon, 13 Apr 2026 13:29:17 +0000 (15:29 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 13 Apr 2026 13:29:17 +0000 (15:29 +0200)
scripts/poe-tasks/test-unit

index 243b6053c10fd3c466eb9eb6e7ead942be45015a..982ac49eee726a1b39e132e6bb8e50291b408c0c 100755 (executable)
@@ -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