2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 10:10:06 +00:00

fix: test: Prevent .hypothesis artifacts in system test directories

Merge branch 'each-hypothesis-artifacts' into 'main'

See merge request isc-projects/bind9!10518
This commit is contained in:
Evan Hunt 2025-06-03 07:35:38 +00:00
commit 7d1cf8f055

View File

@ -22,9 +22,11 @@ if [ -z "$1" ] || [ ! -d "$1" ]; then
fi
system_test_dir="$1"
system_test="$(basename $system_test_dir)"
shift
(
cd "$system_test_dir" || exit 2
/usr/bin/env python3 -m pytest "$@"
[ -d "$system_test_dir" ] || exit 2
cd "${system_test_dir}/.."
/usr/bin/env python3 -m pytest "$@" "$system_test"
)