diff options
Diffstat (limited to 'test/tests/link-ignore-missing.bash')
-rw-r--r-- | test/tests/link-ignore-missing.bash | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/tests/link-ignore-missing.bash b/test/tests/link-ignore-missing.bash new file mode 100644 index 0000000..4978279 --- /dev/null +++ b/test/tests/link-ignore-missing.bash @@ -0,0 +1,23 @@ +test_description='link is created even if source is missing' +. '../test-lib.bash' + +test_expect_failure 'run' ' +run_dotbot <<EOF +- link: + ~/missing_link: + path: missing +EOF +' + +test_expect_success 'run 2' ' +run_dotbot <<EOF +- link: + ~/missing_link: + path: missing + ignore-missing: true +EOF +' + +test_expect_success 'test' ' +test -L ~/missing_link +' |