Skip to content
Snippets Groups Projects
Unverified Commit 13e04bc7 authored by Joas Schilling's avatar Joas Schilling
Browse files

Use phpunit's directory feature

parent 620ee00a
No related branches found
No related tags found
No related merge requests found
......@@ -380,17 +380,9 @@ function execute_tests {
echo "No coverage"
fi
if [ -d "$2" ]; then
for f in $(find "$2" -name '*Test.php'); do
echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" / "$f" "$3"
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$f" "$3"
RESULT=$?
done;
else
echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
RESULT=$?
fi
if [ "$PRIMARY_STORAGE_CONFIG" == "swift" ] ; then
cd ..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment