2020-11-22 16:58:00 -05:00
|
|
|
test_description='--only does not skip defaults'
|
|
|
|
. '../test-lib.bash'
|
|
|
|
|
|
|
|
test_expect_success 'setup' '
|
|
|
|
echo "apple" > ${DOTFILES}/x
|
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_success 'run' '
|
|
|
|
run_dotbot --only link <<EOF
|
|
|
|
- defaults:
|
|
|
|
link:
|
|
|
|
create: true
|
|
|
|
- shell:
|
|
|
|
- echo "pear" > ~/z
|
|
|
|
- link:
|
|
|
|
~/d/x: x
|
2021-02-25 08:16:27 -05:00
|
|
|
EOF
|
2020-11-22 16:58:00 -05:00
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_success 'test' '
|
|
|
|
grep "apple" ~/d/x && ! test -f ~/z
|
|
|
|
'
|