git clone https://github.com/EduardFazliev/rally_json2junit
python rally_json2junit/rally_json2junit/results_parser.py output.json
+USER_ID=$(ls -nd /root/shared/id_rsa | awk '{print $3}')
+GROUP_ID=$(ls -nd /root/shared/id_rsa | awk '{print $4}')
+
+chown -hR ${USER_ID}:${GROUP_ID} /root/rally/tempest.conf
+chown -hR ${USER_ID}:${GROUP_ID} /root/rally/log.log
+chown -hR ${USER_ID}:${GROUP_ID} /root/output.json
+chown -hR ${USER_ID}:${GROUP_ID} /root/verification.xml
+
mkdir -p /root/shared/results
-chmod 777 /root/shared/results
cp /root/rally/log.log /root/shared/results/
cp /root/rally/tempest.log /root/shared/results/
-cp "$(find / -name verification.xml)" /root/rally/results
-cp "$(find / -name output.json)" /root/shared/results/
-chmod -R +w /root/shared
\ No newline at end of file
+cp /root/verification.xml /root/shared/results/
+cp /root/output.json /root/shared/results/
+
+chown -hR ${USER_ID}:${GROUP_ID} /root/shared
\ No newline at end of file
if [ -f "${REPORT_PREFIX}/verification.xml" ]; then
mv -f "${REPORT_PREFIX}/verification.xml" "${REPORT_PREFIX}/verification.xml.unreported"
fi
-rm -rf log.log verification.xml tempest.log tempest.conf
-
source "${VENV_PATH}/bin/activate"
# retry 3 times, because dos.py is not stable sometimes (ntp problem)