Merge pull request #8456 from nextcloud/bugfix/noid/phpunit-can-now-handle-directories-too
Use phpunit's directory feature
This commit is contained in:
commit
3e6e292ada
14
autotest.sh
14
autotest.sh
|
@ -380,17 +380,9 @@ function execute_tests {
|
||||||
echo "No coverage"
|
echo "No coverage"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$2" ]; then
|
echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||||
for f in $(find "$2" -name '*Test.php'); do
|
"${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" "$3"
|
||||||
echo "${PHPUNIT[@]}" --configuration phpunit-autotest.xml $GROUP $COVER --log-junit "autotest-results-$DB.xml" "$2" / "$f" "$3"
|
RESULT=$?
|
||||||
"${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
|
if [ "$PRIMARY_STORAGE_CONFIG" == "swift" ] ; then
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in New Issue