From c2ab422fbb9b70f231c853b388c5e013c9b86a93 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Mon, 26 Nov 2018 16:26:18 -0800 Subject: [PATCH] ptest wrapper: add ptest-installed PASS Add a "ptest-installed" test-case in the successful case also, so that there is always "ptest-installed" test case when ptests are attempted. Change-Id: I277ad66bf51a8b7e65fdea4cf77b6e1d862811c0 Signed-off-by: Kevin Hilman --- common/scripts/ptest-lava-wrapper-all.sh | 1 + common/scripts/ptest-lava-wrapper.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common/scripts/ptest-lava-wrapper-all.sh b/common/scripts/ptest-lava-wrapper-all.sh index 2aa3301..f7a0b4d 100755 --- a/common/scripts/ptest-lava-wrapper-all.sh +++ b/common/scripts/ptest-lava-wrapper-all.sh @@ -5,6 +5,7 @@ command -v ptest-runner >/dev/null 2>&1 if [ $? -ne 0 ] ; then lava-test-case ptest-installed --result SKIP else + lava-test-case ptest-installed --result PASS ptest-runner -L lava-test-case ptest-runtime --measurement $SECONDS --units seconds --result PASS fi diff --git a/common/scripts/ptest-lava-wrapper.sh b/common/scripts/ptest-lava-wrapper.sh index 8e6e879..04aa51c 100755 --- a/common/scripts/ptest-lava-wrapper.sh +++ b/common/scripts/ptest-lava-wrapper.sh @@ -10,6 +10,8 @@ command -v ptest-runner >/dev/null 2>&1 if [ $? -ne 0 ] ; then lava-test-case ptest-installed --result SKIP else + lava-test-case ptest-installed --result PASS + # Run ptests for specified packages for unit in ${REQUIREDPTESTS}; do ptest-runner -L ${unit} -- 2.16.6