From 720051474531025496103898f69e114757efe79b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 21 Sep 2026 21:58:47 -1000 Subject: Test the hardening pass --- tests/setup.sh | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'tests/setup.sh') diff --git a/tests/setup.sh b/tests/setup.sh index f84b1b6..a1f2d15 100755 --- a/tests/setup.sh +++ b/tests/setup.sh @@ -49,11 +49,10 @@ TEST_RESULTS_DIR="$TEST_OUTPUT_DIRECTORY/results" TEST_RESULTS_BASE="$TEST_RESULTS_DIR/$TEST_NAME$TEST_STRESS_JOB_SFX" TEST_RESULTS_SAN_DIR="$TEST_RESULTS_BASE.$TEST_RESULTS_SAN_DIR_SFX" -# The library has moved into the trash directory by now, so paths outside -# it are anchored to TEST_OUTPUT_DIRECTORY. - -# The tests run cgit by name, so the binary just built has to come ahead of any -# copy already installed. Under Valgrind the wrappers take that place instead. +# The library has moved into the trash directory by now, so paths outside it +# are anchored to TEST_OUTPUT_DIRECTORY. The tests run cgit by name, so the +# binary just built has to come ahead of any copy already installed. Under +# Valgrind the wrappers take that place instead. if test -n "$cgit_valgrind" then GIT_VALGRIND="$TEST_DIRECTORY/valgrind" @@ -107,8 +106,7 @@ mkrepo() { ) } -setup_repos() -{ +setup_repos() { rm -rf cache mkdir -p cache mkrepo repos/foo 5 >/dev/null @@ -171,13 +169,11 @@ EOF fi } -cgit_query() -{ +cgit_query() { CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="$1" cgit } -cgit_url() -{ +cgit_url() { CGIT_CONFIG="$PWD/cgitrc" QUERY_STRING="url=$1" cgit } -- cgit v2.8.0