blob: baef2ef59cc15c9c3dfc7397b3ad456c5f93d237 (
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.
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"
test_run_remove
# 3.txt must be kept:
local expected_output="$test_dest_dir->
$test_dest_dir/bar->
$test_dest_dir/bar/3.txt->"
test_verify_output "$test_dest_dir" "$expected_output"
}
|