blob: cb51eb9b7ee712a836be12ebfed6421651df7807 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
test_run() {
# Check that if a user overwrites a symlink with his own file, links-remove
# keeps it.
new_test
call_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
# 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"
}
|