diff options
author | Albert Puig <albert.puig@cern.ch> | 2018-05-25 22:04:04 +0200 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2019-12-31 14:25:53 -0500 |
commit | eabd84bce1139a5c48089c97cd74bb919a8df331 (patch) | |
tree | 29378daa81cf6511089b5342b637a1cc842f0257 /test | |
parent | a8380f6496d091a13769bd12bb6ca7a89d3618eb (diff) |
Add ignore-missing option to link
Diffstat (limited to 'test')
-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 +' |