2018-04-06 12:39:57 -04:00
|
|
|
test_description='link glob ambiguous'
|
|
|
|
. '../test-lib.bash'
|
|
|
|
|
|
|
|
test_expect_success 'setup' '
|
2018-04-06 13:07:52 -04:00
|
|
|
mkdir ${DOTFILES}/foo
|
2018-04-06 12:39:57 -04:00
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_failure 'run 1' '
|
|
|
|
run_dotbot <<EOF
|
|
|
|
- link:
|
2018-04-06 13:07:52 -04:00
|
|
|
~/foo/:
|
|
|
|
path: foo
|
2018-04-06 12:39:57 -04:00
|
|
|
glob: true
|
|
|
|
EOF
|
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_failure 'test 1' '
|
2018-04-06 13:07:52 -04:00
|
|
|
test -d ~/foo
|
2018-04-06 12:39:57 -04:00
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_failure 'run 2' '
|
|
|
|
run_dotbot <<EOF
|
|
|
|
- link:
|
2018-04-06 13:07:52 -04:00
|
|
|
~/foo/:
|
|
|
|
path: foo/
|
2018-04-06 12:39:57 -04:00
|
|
|
glob: true
|
|
|
|
EOF
|
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_failure 'test 2' '
|
2018-04-06 13:07:52 -04:00
|
|
|
test -d ~/foo
|
2018-04-06 12:39:57 -04:00
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_success 'run 3' '
|
|
|
|
run_dotbot <<EOF
|
|
|
|
- link:
|
2018-04-06 13:07:52 -04:00
|
|
|
~/foo:
|
|
|
|
path: foo
|
2018-04-06 12:39:57 -04:00
|
|
|
glob: true
|
|
|
|
EOF
|
|
|
|
'
|
|
|
|
|
|
|
|
test_expect_success 'test 3' '
|
2018-04-06 13:07:52 -04:00
|
|
|
test -d ~/foo
|
2018-04-06 12:39:57 -04:00
|
|
|
'
|