summaryrefslogtreecommitdiffstatshomepage
path: root/test/lib
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-09-30 15:08:14 +0500
committerEgor Tensin <egor@tensin.name>2026-09-30 15:08:14 +0500
commitf179df2e8f8e2ca0a0f20a8fdfcdd0c9b99fce81 (patch)
tree7a7db2046293ce7a827d6425db01fccca458a32a /test/lib
parenttest: consistent copyright notices (diff)
downloadconfig-links-f179df2e8f8e2ca0a0f20a8fdfcdd0c9b99fce81.tar.gz
config-links-f179df2e8f8e2ca0a0f20a8fdfcdd0c9b99fce81.zip
test: minor refactoring
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/test.sh8
1 files changed, 4 insertions, 4 deletions
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() {