mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Prevent .hypothesis artifacts in system test directories
The "run.sh" script, used by "make test", changes the working
directory to the system test directory before executing pytest.
If the test drops hypothesis artifacts while running, this
can cause spurious test failures due to an apparent mismatch
between the contents of the system test directory and the
temporary pytest directory. This has been addressed by having
"run.sh" call pytest from the parent directory instead.
(cherry picked from commit c08e78ef73)
This commit is contained in:
parent
d95caf1b4f
commit
3de9d6f8df
1 changed files with 4 additions and 2 deletions
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue