diff options
author | Christian Höltje <docwhat@gerf.org> | 2015-03-18 22:45:22 -0400 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2015-06-05 11:23:38 +0200 |
commit | 9a3f6cc532080a5b7095037835f778c9a621f642 (patch) | |
tree | 5c5ce89c02c0bc65776ab6a0628eda246891b36f /test/lsrc-host-tags-default.t | |
parent | aec2af1e243054ba864279889468379ad0784e63 (diff) |
Changes the priority to: hosts->tags->default
This changes the order that things are pulled in so that:
1. Hosts take priority over everything.
2. Tags take priority over default.
3. Default takes priority over nothing.
Closes #94
Diffstat (limited to 'test/lsrc-host-tags-default.t')
-rw-r--r-- | test/lsrc-host-tags-default.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lsrc-host-tags-default.t b/test/lsrc-host-tags-default.t new file mode 100644 index 0000000..aa9a253 --- /dev/null +++ b/test/lsrc-host-tags-default.t @@ -0,0 +1,17 @@ + $ . "$TESTDIR/helper.sh" + +Hosts override tags override defaults + + $ touch .dotfiles/host-example + > touch .dotfiles/tag-example + > touch .dotfiles/default-example + > mkdir .dotfiles/tag-firetruck + > touch .dotfiles/tag-firetruck/host-example + > touch .dotfiles/tag-firetruck/tag-example + > mkdir .dotfiles/host-eggplant + > touch .dotfiles/host-eggplant/host-example + + $ lsrc -B eggplant -t firetruck + /*/.host-example:/*/.dotfiles/host-eggplant/host-example (glob) + /*/.tag-example:/*/.dotfiles/tag-firetruck/tag-example (glob) + /*/.default-example:/*/.dotfiles/default-example (glob) |