diff options
| author | Egor Tensin <egor@tensin.name> | 2026-09-22 13:25:39 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-09-22 13:25:39 +0500 |
| commit | 180da14d61791c6eafda0aa9686f9255dcfb5ffd (patch) | |
| tree | 1680c38caace975375f0dc319677d807b3de25fd /test/local/tst-remove-does-not-overwrite-files.sh | |
| parent | test/local: split test.sh into many files (diff) | |
| download | config-links-180da14d61791c6eafda0aa9686f9255dcfb5ffd.tar.gz config-links-180da14d61791c6eafda0aa9686f9255dcfb5ffd.zip | |
test/local: refactor things a little bit
Diffstat (limited to 'test/local/tst-remove-does-not-overwrite-files.sh')
| -rw-r--r-- | test/local/tst-remove-does-not-overwrite-files.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/local/tst-remove-does-not-overwrite-files.sh b/test/local/tst-remove-does-not-overwrite-files.sh index cb51eb9..14641de 100644 --- a/test/local/tst-remove-does-not-overwrite-files.sh +++ b/test/local/tst-remove-does-not-overwrite-files.sh @@ -2,19 +2,19 @@ test_run() { # Check that if a user overwrites a symlink with his own file, links-remove # keeps it. - new_test - call_update + test_setup + test_run_update # Simulate a user overwriting one of the symlinks with his own file. rm -- "$test_dest_dir/bar/3.txt" echo 'User content' > "$test_dest_dir/bar/3.txt" - call_remove + test_run_remove # 3.txt must be kept: local expected_output="$test_dest_dir-> $test_dest_dir/bar-> $test_dest_dir/bar/3.txt->" - verify_output "$expected_output" + test_verify_output "$expected_output" } |
