From 8ab155a6728ffcbe13631016ec7367259c80dea2 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Fri, 26 Feb 2016 13:01:15 +0100 Subject: [PATCH] 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 --- t/api-rest/testrunner | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/api-rest/testrunner b/t/api-rest/testrunner index 3cd1c56cc1..d92676c3d5 100755 --- a/t/api-rest/testrunner +++ b/t/api-rest/testrunner @@ -9,7 +9,7 @@ if ! [ -f /.dockerinit ] ; then fi SERVER="${1:-}" -SELECT="${2:-}" +SELECT="${2:-all}" OUTPUT_DIRECTORY="${3:-/code/}" FORMAT="${4:-pretty}" @@ -29,9 +29,11 @@ if [ "${SELECT}" = "stable" ] ; then elif [ "${SELECT}" = "fast" ] ; then 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) -else +elif [ "${SELECT}" = "all" ] ; then echo "Test selection: all" SELECT=$(echo t/api-rest/*.t) +else + echo "Test selection: ${SELECT}" fi echo "################################################################################" @@ -59,3 +61,5 @@ for file in "${OUTPUT_DIRECTORY}/api-rest.pretty" "${OUTPUT_DIRECTORY}/api-rest. fi done echo "################################################################################" + +exit "${RC}"