[Fuego] [PATCH 5/5] LTP: allow using a file to specify the list of tests to skip

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


This feature was proposed by Tim Bird.

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

diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index abddf54..de9ed27 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -303,11 +303,17 @@ function test_build {
 }
 
 function test_deploy {
-    # generate the skip list for this test
-    echo "# skip these test cases" > skiplist.txt
+    # Add tests to skip if "skiplist" is defined on the spec. The "skiplist"
+    # can contain LTP test_case names (e.g.: inotify06) and/or absolute path(s)
+    # to skipfiles (text files containing a list of LTP test case names)
+    # usually located under /fuego-rw/boards/
     if [ -n "${FUNCTIONAL_LTP_SKIPLIST}" ]; then
-        for item in $FUNCTIONAL_LTP_SKIPLIST; do
-            echo "$item" >> ${LOGDIR}/skiplist.txt
+        for item in "${FUNCTIONAL_LTP_SKIPLIST}"; do
+            if [ -f "$item" ]; then
+                cat "$item" >> ${LOGDIR}/skiplist.txt
+            else
+                echo "$item" >> ${LOGDIR}/skiplist.txt
+            fi
         done
     fi
 
-- 
2.7.4




More information about the Fuego mailing list