From: xudan Date: Thu, 2 Aug 2018 02:57:14 +0000 (-0400) Subject: [dovetail] generate a results package for testing Dovetail web portal X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=180e176d253eb35608bebb1c93e90de5b9abeb7c;p=releng.git [dovetail] generate a results package for testing Dovetail web portal Change-Id: I3b9f06807ebf581e3f74286f479519937b75b06f Signed-off-by: xudan --- diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh index ecc75bc4b..1fee4ae53 100755 --- a/jjb/dovetail/dovetail-run.sh +++ b/jjb/dovetail/dovetail-run.sh @@ -372,11 +372,18 @@ else testarea="--testarea ${TESTAREA}" fi -run_cmd="dovetail run ${testsuite} ${testarea} -d" +run_cmd="dovetail run ${testsuite} ${testarea} -d -r" echo "Container exec command: ${run_cmd}" docker exec $container_id ${run_cmd} sudo cp -r ${DOVETAIL_HOME}/results ./ +result_package=$(find ${DOVETAIL_HOME} -name 'logs_*') +echo "Results package is ${result_package}" +for item in ${result_package}; +do + sudo mv ${item} ./results +done + # To make sure the file owner is the current user, for the copied results files in the above line echo "Change owner of result files ..." CURRENT_USER=${SUDO_USER:-$USER}