[Fuego] [PATCH 4/5] LTP: fix problem with tests skipped during build

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Tue Feb 6 08:06:51 UTC 2018


Tests skipped during the build phase get ignored on the
second run because build is not called so save them on
a different file.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Functional.LTP/fuego_test.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index a4df442..abddf54 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -120,7 +120,7 @@ function skip_if_config_unavailable {
 
     if ! grep "#define $CONFIG" ${WORKSPACE}/${JOB_BUILD_DIR}/include/config.h; then
         echo "WARNING: $CONFIG is not available."
-        skip_tests "${TESTS}"
+        skip_tests "${TESTS}" "${WORKSPACE}/${JOB_BUILD_DIR}/buildskipfile.txt"
         if [ -n "$MSG" ]; then
             echo "$MSG"
         fi
@@ -296,6 +296,9 @@ function test_build {
         cp $TEST_HOME/ltp_target_run.sh target_bin
     else
         echo "Skipping LTP build"
+        if [ -f "${WORKSPACE}/${JOB_BUILD_DIR}/buildskipfile.txt" ]; then
+            cat "${WORKSPACE}/${JOB_BUILD_DIR}/buildskipfile.txt" >> ${LOGDIR}/skiplist.txt
+        fi
     fi
 }
 
-- 
2.7.4




More information about the Fuego mailing list