Modify test to reflect creation behaviour for missing targets
This commit is contained in:
parent
8af95827ff
commit
393c5942ba
|
@ -1,4 +1,4 @@
|
||||||
test_description='force leaves file when target nonexistent'
|
test_description='link creates target and links file when target nonexistent'
|
||||||
. '../test-lib.bash'
|
. '../test-lib.bash'
|
||||||
|
|
||||||
test_expect_success 'setup' '
|
test_expect_success 'setup' '
|
||||||
|
@ -6,7 +6,7 @@ mkdir ~/dir &&
|
||||||
touch ~/file
|
touch ~/file
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_failure 'run' '
|
test_expect_success 'run' '
|
||||||
run_dotbot <<EOF
|
run_dotbot <<EOF
|
||||||
- link:
|
- link:
|
||||||
~/dir:
|
~/dir:
|
||||||
|
@ -19,6 +19,8 @@ EOF
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'test' '
|
test_expect_success 'test' '
|
||||||
test -d ~/dir &&
|
test -L ~/dir &&
|
||||||
test -f ~/file
|
test -L ~/file &&
|
||||||
|
test -d ${DOTFILES}/dir &&
|
||||||
|
test -f ${DOTFILES}/file
|
||||||
'
|
'
|
Loading…
Reference in a new issue