From f179df2e8f8e2ca0a0f20a8fdfcdd0c9b99fce81 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 30 Sep 2026 15:08:14 +0500 Subject: test: minor refactoring --- test/lib/test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/lib/test.sh b/test/lib/test.sh index 6b52f27..400f39a 100644 --- a/test/lib/test.sh +++ b/test/lib/test.sh @@ -52,15 +52,15 @@ test_cleanup_default() { } test_run_script() { - local common_args=( + local cmd=( + "$@" --shared-dir "$test_src_dir" --database "$test_root_dir/links.bin" ) - log_run "$@" "${common_args[@]}" + log_run "${cmd[@]}" - DEST="$test_dest_dir" ALT_DEST="$test_alt_dest_dir" \ - "$@" "${common_args[@]}" + DEST="$test_dest_dir" ALT_DEST="$test_alt_dest_dir" "${cmd[@]}" } test_run_update() { -- cgit v1.3