MT#15269 Restore possibilit to trigger one/specific REST API test

Also fix the exit code for failed test which gone during refactoring.

Change-Id: I56702b1247aa7fd157cdd2b556f629fd937ca693
changes/08/4908/2
Alexander Lutay 10 years ago
parent 93231df278
commit 8ab155a672

@ -9,7 +9,7 @@ if ! [ -f /.dockerinit ] ; then
fi fi
SERVER="${1:-}" SERVER="${1:-}"
SELECT="${2:-}" SELECT="${2:-all}"
OUTPUT_DIRECTORY="${3:-/code/}" OUTPUT_DIRECTORY="${3:-/code/}"
FORMAT="${4:-pretty}" FORMAT="${4:-pretty}"
@ -29,9 +29,11 @@ if [ "${SELECT}" = "stable" ] ; then
elif [ "${SELECT}" = "fast" ] ; then elif [ "${SELECT}" = "fast" ] ; then
echo "Test selection: ${SELECT}" echo "Test selection: ${SELECT}"
SELECT=$(echo t/api-rest/api-{billingnetworks,billingzones,calls,cert-auth,cfdestinationsets,ncoslevels,peeringgroups,peeringrules,peeringservers,resellers,rewriterules,soundsets,systemcontacts,valid-patch,vouchers}.t) SELECT=$(echo t/api-rest/api-{billingnetworks,billingzones,calls,cert-auth,cfdestinationsets,ncoslevels,peeringgroups,peeringrules,peeringservers,resellers,rewriterules,soundsets,systemcontacts,valid-patch,vouchers}.t)
else elif [ "${SELECT}" = "all" ] ; then
echo "Test selection: all" echo "Test selection: all"
SELECT=$(echo t/api-rest/*.t) SELECT=$(echo t/api-rest/*.t)
else
echo "Test selection: ${SELECT}"
fi fi
echo "################################################################################" echo "################################################################################"
@ -59,3 +61,5 @@ for file in "${OUTPUT_DIRECTORY}/api-rest.pretty" "${OUTPUT_DIRECTORY}/api-rest.
fi fi
done done
echo "################################################################################" echo "################################################################################"
exit "${RC}"

Loading…
Cancel
Save