ptest wrapper: add ptest-installed PASS 15/18315/1
authorKevin Hilman <khilman@baylibre.com>
Tue, 27 Nov 2018 00:26:18 +0000 (16:26 -0800)
committerKevin Hilman <khilman@baylibre.com>
Tue, 27 Nov 2018 00:47:55 +0000 (16:47 -0800)
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 <khilman@baylibre.com>
common/scripts/ptest-lava-wrapper-all.sh
common/scripts/ptest-lava-wrapper.sh

index 2aa3301..f7a0b4d 100755 (executable)
@@ -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
index 8e6e879..04aa51c 100755 (executable)
@@ -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}