aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/local/tst-update-chmod.sh
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-09-22 13:25:39 +0500
committerEgor Tensin <egor@tensin.name>2026-09-22 13:25:39 +0500
commit180da14d61791c6eafda0aa9686f9255dcfb5ffd (patch)
tree1680c38caace975375f0dc319677d807b3de25fd /test/local/tst-update-chmod.sh
parenttest/local: split test.sh into many files (diff)
downloadconfig-links-180da14d61791c6eafda0aa9686f9255dcfb5ffd.tar.gz
config-links-180da14d61791c6eafda0aa9686f9255dcfb5ffd.zip
test/local: refactor things a little bit
Diffstat (limited to 'test/local/tst-update-chmod.sh')
-rw-r--r--test/local/tst-update-chmod.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/local/tst-update-chmod.sh b/test/local/tst-update-chmod.sh
index 3f83f0f..8873c82 100644
--- a/test/local/tst-update-chmod.sh
+++ b/test/local/tst-update-chmod.sh
@@ -1,9 +1,9 @@
test_run() {
# Test that links-update --mode works.
- new_test
+ test_setup
local expected_mode='0622'
- call_update --mode "$expected_mode"
+ test_run_update --mode "$expected_mode"
local expected_output="$test_dest_dir->
$test_dest_dir/1.txt->$test_src_dir/%DEST%/1.txt
@@ -13,7 +13,7 @@ $test_dest_dir/bar/baz->
$test_dest_dir/bar/baz/4.txt->$test_src_dir/%DEST%/bar/baz/4.txt
$test_dest_dir/foo->
$test_dest_dir/foo/2.txt->$test_src_dir/%DEST%/foo/2.txt"
- verify_output "$expected_output"
+ test_verify_output "$expected_output"
- verify_mode "$expected_mode" "$test_src_dir/%DEST%/1.txt"
+ test_verify_mode "$expected_mode" "$test_src_dir/%DEST%/1.txt"
}