From 1a64fc8f86d9fec6fb3a2322e1876537e32fa52c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 13:55:09 -1000 Subject: Give each auth unit run a directory of its own test-auth.lua wrote its fixtures into whatever directory it was started from, so a run by hand from the checkout left auth-users and its siblings behind, and the checks assumed no auth-users-missing or no-such-directory already sat there. It now refuses to run without a directory, and t0505 hands each interpreter and variant a fresh one. The interpreter and paths are expanded inside the test body rather than pasted into it in single quotes, so a path holding a quote no longer breaks the eval. --- tests/t0505-auth.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/t0505-auth.sh') diff --git a/tests/t0505-auth.sh b/tests/t0505-auth.sh index 3b49c7e..7562e49 100755 --- a/tests/t0505-auth.sh +++ b/tests/t0505-auth.sh @@ -17,9 +17,11 @@ for lua in $interpreters do for variant in inline file do - test_expect_success "auth-$variant checks under $lua" " - '$lua' '$EXT_TEST_DIRECTORY/test-auth.lua' '$EXTENSIONS_DIRECTORY/auth-$variant.lua' $variant - " + test_expect_success "auth-$variant checks under $lua" ' + mkdir "unit-$lua-$variant" && + "$lua" "$EXT_TEST_DIRECTORY/test-auth.lua" \ + "$EXTENSIONS_DIRECTORY/auth-$variant.lua" $variant "$PWD/unit-$lua-$variant" + ' done done -- cgit 2.12.1