Small fix for test script.

This commit is contained in:
James Cole
2018-08-23 18:32:17 +02:00
parent 179f720806
commit 05309da76d

View File

@@ -22,6 +22,7 @@ apitestclass=''
verbalflag='' verbalflag=''
testsuite='' testsuite=''
suiteflag=''
configfile='phpunit.xml'; configfile='phpunit.xml';
while getopts 'vcrtf:u:s:a:' flag; do while getopts 'vcrtf:u:s:a:' flag; do
@@ -56,6 +57,7 @@ while getopts 'vcrtf:u:s:a:' flag; do
echo "Will only run Api test $OPTARG" echo "Will only run Api test $OPTARG"
;; ;;
s) s)
suiteflag='true'
testsuite="--testsuite $OPTARG" testsuite="--testsuite $OPTARG"
echo "Will only run test suite '$OPTARG'" echo "Will only run test suite '$OPTARG'"
;; ;;
@@ -63,7 +65,7 @@ while getopts 'vcrtf:u:s:a:' flag; do
esac esac
done done
if [[ $coverageflag == "true" && ($featureflag == "true" || $unitflag == "true" || $apiflag == "true") ]] if [[ $coverageflag == "true" && ($suiteflag == "true" || $featureflag == "true" || $unitflag == "true" || $apiflag == "true") ]]
then then
echo "Use config file specific.xml" echo "Use config file specific.xml"
configfile='phpunit.coverage.specific.xml' configfile='phpunit.coverage.specific.xml'