summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authormei mei <meimei@huawei.com>2018-08-03 02:09:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-08-03 02:09:55 +0000
commitcb5f2f65722e5f30812145cc612b69dbf04c19e3 (patch)
treeebfd806c3773109c02895c0324b53f67e847b7aa /jjb
parente1237bbaa4e7ebd0fba8d3a254a8addbec4724e6 (diff)
parent180e176d253eb35608bebb1c93e90de5b9abeb7c (diff)
Merge "[dovetail] generate a results package for testing Dovetail web portal"
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/dovetail/dovetail-run.sh9
1 files changed, 8 insertions, 1 deletions
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}