Skip to content

Commit 28b57c8

Browse files
author
pproenca
committed
Change strategy for test suites dirs iteration
1 parent 271e96a commit 28b57c8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/functions.test.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,10 @@ function bashunit.test.run_suite()
9494
bashunit.utils.dir_exists_or_fail "$target"
9595
bashunit.test._start_suite
9696

97-
local old_ifs="$IFS"
98-
IFS=$'\n'
99-
for test_suite in $(find "$target" -name "test.*sh")
97+
while read test_suite
10098
do
10199
bashunit.test._run_test_case "$test_suite"
102-
done
103-
IFS="$old_ifs"
100+
done < <(find "$target" -name "test.*sh")
104101

105102
bashunit.test._end_suite
106103
return $?

0 commit comments

Comments
 (0)