[Fuego] [PATCH 3/5] LTP: allow specifying the location for the skipfile
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Tue Feb 6 08:06:50 UTC 2018
This will be used on the next patch.
Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
engine/tests/Functional.LTP/fuego_test.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index 15bf0fb..a4df442 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -81,15 +81,17 @@ func/sched_jitter
# FUNCTIONAL_LTP_HOMEDIR var
# $1: string with tests to skip separated by spaces
+# $2: absolute path to the skipfile (default: ${LOGDIR}/skiplist.txt)
function skip_tests {
# split $1 on whitespace, without file globbing
set -f
local TESTS=($1)
+ local SKIPFILE="${2:-${LOGDIR}/skiplist.txt}"
set +f
echo "Skipping tests: ${TESTS[@]}."
for testname in "${TESTS[@]}"; do
- echo "$testname" >> ${LOGDIR}/skiplist.txt
+ echo "$testname" >> ${SKIPFILE}
done
}
--
2.7.4
More information about the Fuego
mailing list