Skip to content

Commit 06dc367

Browse files
committed
fix: can name a test file named after an binary
If one named its test file after an binary that can be found in PATH then bash_unit was trying to source this binary instead of the test file.
1 parent 6a5dea6 commit 06dc367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_unit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ do
580580
then
581581
cd "$(dirname "$test_file")"
582582
# shellcheck disable=1090
583-
source "$(basename "$test_file")"
583+
source "./$(basename "$test_file")"
584584
else
585585
# shellcheck disable=1090
586586
source "$test_file"

0 commit comments

Comments
 (0)