From 9a3f6cc532080a5b7095037835f778c9a621f642 Mon Sep 17 00:00:00 2001 From: Christian Höltje Date: Wed, 18 Mar 2015 22:45:22 -0400 Subject: 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 --- test/lsrc-host-tags-default.t | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/lsrc-host-tags-default.t (limited to 'test/lsrc-host-tags-default.t') 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) -- cgit v1.2.3