Skip to content

Commit

Permalink
chore(util) do not remove test servroot with TEST_NGINX_RANDOMIZE=1
Browse files Browse the repository at this point in the history
The servroot should only be cleaned when we are sure it will be
overwritten anyway. This allows observing its contents for debugging
purposes while running randomized test on the whole suite.
  • Loading branch information
thibaultcha committed Oct 5, 2023
1 parent 89170ed commit c9449d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ fi
if [[ "$TEST_NGINX_RANDOMIZE" == 1 ]]; then
prove_opts="-j$(n_jobs)"
echo "TEST_NGINX_RANDOMIZE=$TEST_NGINX_RANDOMIZE ($prove_opts)"

else
rm -rf $TEST_NGINX_SERVROOT
fi

echo
Expand All @@ -155,8 +158,6 @@ elif [ ! -x "$(command -v ldd)" ]; then
ldd $TEST_NGINX_BINARY | grep wasm
fi

rm -rf $TEST_NGINX_SERVROOT

echo
exec prove -r $prove_opts $@

Expand Down

0 comments on commit c9449d8

Please sign in to comment.