Do not hardcode artifacts path #41

Merged
merged 1 commit into from Jan 19, 2017
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -123,7 +123,7 @@ echo "bundle_name: {{charmname}}_in_{{bundle_fname}}" >> totest.yaml
echo "bundle_file: bundle.yaml" >> totest.yaml
# We want cwr json results to be transformed to xml even if cwr fails
-eval "function transform_results() { python3 {{charm_home}}/scripts/json2junit.py /srv/artifacts/ hadoop_client_in_cs_hadoop_processing $BUILD_NUMBER > $WORKSPACE/report.xml; }"
+eval "function transform_results() { python3 {{charm_home}}/scripts/json2junit.py /srv/artifacts/ {{charm_fname}}_in_{{bundle_fname}} $BUILD_NUMBER > $WORKSPACE/report.xml; }"
old_trap=`trap -p EXIT | awk -F"'" '{print $2}'`
new_trap="transform_results; ${old_trap}"
trap "${new_trap}" EXIT