forked from sstephenson/bats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reimplement load to be more useable and consistent
Existing support is preserved (absolute paths and relative paths with a `.bash` suffix), and now *any* relative path is supported, as well as scripts on the system `PATH`. Fixes sstephenson#79
- Loading branch information
Showing
4 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Helper to detect regressions in load's lookup ordering. | ||
# An exact name match should be prioritized over name.bash. | ||
|
||
echo "Should not have loaded this file!" >&2 | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Helper to detect regressions in load's lookup ordering. | ||
# An exact name match should be prioritized over name.bash. | ||
|
||
echo "This is the expected file to load." | ||
|
||
help_me() { :; } |