From fe5be5fd85f8ee02346aa3eb1425d935ce408d78 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Sun, 21 Aug 2016 22:16:20 +0200 Subject: [PATCH] MT#22125 Switch system-tests to TAP output Change-Id: I3277065182e4c4a6e823d2e628e4bf1c58b7a00b (cherry picked from commit 1462a16419a1901e56f7314f80d3c052c1c94df7) --- testrunner | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/testrunner b/testrunner index 4788b2a..e3b9697 100755 --- a/testrunner +++ b/testrunner @@ -48,18 +48,11 @@ fi echo "Rebuilding test configs in /etc/ngcp-test/" ngcpcfg build /etc/ngcp-test/* +rm -f "${host_yml_file}" rm -rf "${REPORT_DIRECTORY}" mkdir -p "${REPORT_DIRECTORY}" TAP_RESULTS="${REPORT_DIRECTORY}/goss_${TYPE}_results.tap" -# TODO: add --format=tap when TAP formater will be supported -if goss -g "/etc/ngcp-tests/${TYPE}/goss.yaml" validate ; then - echo "1..1" > "${TAP_RESULTS}" - echo "ok 1 - no errors were found" >> "${TAP_RESULTS}" -else - echo "1..1" > "${TAP_RESULTS}" - echo "not ok 1 - found errors, run test manually" >> "${TAP_RESULTS}" -fi +goss -g "/etc/ngcp-tests/${TYPE}/goss.json" validate --format tap > "${TAP_RESULTS}" -rm -f "${host_yml_file}"