Skip to content

Commit

Permalink
Change strategy for test suites dirs iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
pproenca committed Jan 23, 2017
1 parent 271e96a commit 28b57c8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/functions.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,10 @@ function bashunit.test.run_suite()
bashunit.utils.dir_exists_or_fail "$target"
bashunit.test._start_suite

local old_ifs="$IFS"
IFS=$'\n'
for test_suite in $(find "$target" -name "test.*sh")
while read test_suite
do
bashunit.test._run_test_case "$test_suite"
done
IFS="$old_ifs"
done < <(find "$target" -name "test.*sh")

bashunit.test._end_suite
return $?
Expand Down

0 comments on commit 28b57c8

Please sign in to comment.