rt-tests: Enable JSON test report
All rt-tests learned to output all results in JSON format. This makes
it possible the replace the really awkward log parser (it has to
handle subtle differences how a rt-tests logs on the console) and
just rely on a generic JSON parser implementation.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
diff --git a/automated/linux/sigwaittest/sigwaittest.sh b/automated/linux/sigwaittest/sigwaittest.sh
index 7b3d066..4e98519 100755
--- a/automated/linux/sigwaittest/sigwaittest.sh
+++ b/automated/linux/sigwaittest/sigwaittest.sh
@@ -7,7 +7,7 @@
TEST_DIR=$(dirname "$(realpath "$0")")
OUTPUT="${TEST_DIR}/output"
-LOGFILE="${OUTPUT}/sigwaittest.log"
+LOGFILE="${OUTPUT}/sigwaittest.json"
RESULT_FILE="${OUTPUT}/result.txt"
DURATION="5m"
BACKGROUND_CMD=""
@@ -39,7 +39,7 @@
background_process_start bgcmd --cmd "${BACKGROUND_CMD}"
-"${binary}" -q -t -a -p 98 -D "${DURATION}" | tee "${LOGFILE}"
+"${binary}" -q -t -a -p 98 -D "${DURATION}" --json="${LOGFILE}"
background_process_stop bgcmd