[Fuego] [PATCH 2/4] LTP: to apply those user-specified configurations(scripts)

Liu Wenlong liuwl.fnst at cn.fujitsu.com
Sun Mar 11 15:38:39 UTC 2018


Signed-off-by: Liu Wenlong <liuwl.fnst at cn.fujitsu.com>
---
 engine/tests/Functional.LTP/ltp_target_run.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/engine/tests/Functional.LTP/ltp_target_run.sh b/engine/tests/Functional.LTP/ltp_target_run.sh
index 52a006a..3292a4b 100755
--- a/engine/tests/Functional.LTP/ltp_target_run.sh
+++ b/engine/tests/Functional.LTP/ltp_target_run.sh
@@ -14,6 +14,11 @@ mkdir -p ${OUTPUT_DIR}
 
 echo y | ./IDcheck.sh
 
+# do some pre-configuration before testing
+if [ -f ./set_env.sh ]; then
+    . ./set_env.sh start
+fi
+
 echo "ltp_target_run: ${TESTS} | ${PTSTESTS} | ${RTTESTS}"
 
 # FIXTHIS: add -t option for limiting the duration of each test group execution
@@ -45,5 +50,10 @@ for i in ${RTTESTS}; do
 done
 [ -e testcases/realtime/logs ] && cat testcases/realtime/logs/*.log > ${OUTPUT_DIR}/rt.log
 
+# do some restore work after testing
+if [ -f ./set_env.sh ]; then
+    . ./set_env.sh end
+fi
+
 # LTP always success, check the results to see which subtests failed
 exit 0
-- 
2.7.4





More information about the Fuego mailing list