We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5158e0 commit ff3e7aeCopy full SHA for ff3e7ae
images/build-e2e/lib/linux/run.sh
@@ -62,11 +62,11 @@ cd $targetFolder/bin
62
# Transform results to junit
63
cd ..
64
init_line=$(grep -n '<?xml version="1.0" encoding="UTF-8"?>' results/e2e.results | awk '{split($0,n,":"); print n[1]}')
65
-if which xsltproc &>/dev/null
66
-then
67
- tail -n +$init_line results/e2e.results | xsltproc filter.xsl - > results/$junitFilename
68
-else
69
- tail -n +$init_line results/e2e.results > results/$junitFilename
+if ! command -v xsltproc &>/dev/null
+then
+ sudo yum install -y xsltproc || echo "Warning: Failed to install xsltproc"
70
fi
+tail -n +$init_line results/e2e.results | xsltproc filter.xsl - > results/$junitFilename
+
71
# Copy logs and diagnose
72
cp -r bin/out/test-results/* results
0 commit comments