summaryrefslogtreecommitdiff
path: root/test/tests/only-multi.bash
blob: e8d836284552ce008732b53ad544a867a49fc743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
test_description='--only with multiple arguments'
. '../test-lib.bash'

test_expect_success 'setup' '
ln -s ${DOTFILES}/nonexistent ~/bad && touch ${DOTFILES}/y
'

test_expect_success 'run' '
run_dotbot --only clean shell <<EOF
- clean: ["~"]
- shell:
  - echo "x" > ~/x
- link:
    ~/y: y
EOF
'

test_expect_success 'test' '
! test -f ~/bad && grep "x" ~/x && ! test -f ~/y
'