[Fuego] [PATCH 11/11] ltp: fix bug related to build-time skip tests
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Thu Mar 1 08:27:22 UTC 2018
We need to update the skiplist during the deploy phase because
the build phase is only called once by default.
Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
engine/tests/Functional.LTP/fuego_test.sh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/engine/tests/Functional.LTP/fuego_test.sh b/engine/tests/Functional.LTP/fuego_test.sh
index c8459ee..6fa0bc7 100755
--- a/engine/tests/Functional.LTP/fuego_test.sh
+++ b/engine/tests/Functional.LTP/fuego_test.sh
@@ -301,13 +301,15 @@ 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
}
function test_deploy {
+ if [ -f "${WORKSPACE}/${JOB_BUILD_DIR}/buildskipfile.txt" ]; then
+ echo "Appending tests skipped during the build phase to the skiplist."
+ cat "${WORKSPACE}/${JOB_BUILD_DIR}/buildskipfile.txt" >> ${LOGDIR}/skiplist.txt
+ fi
+
# 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)
--
2.7.4
More information about the Fuego
mailing list