Skip to content

Commit ff3e7ae

Browse files
committed
[QE] install xsltprox for e2e xml result format
crc-org/crc-internal#133
1 parent c5158e0 commit ff3e7ae

File tree

1 file changed

+5
-5
lines changed
  • images/build-e2e/lib/linux

1 file changed

+5
-5
lines changed

images/build-e2e/lib/linux/run.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ cd $targetFolder/bin
6262
# Transform results to junit
6363
cd ..
6464
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
65+
if ! command -v xsltproc &>/dev/null
66+
then
67+
sudo yum install -y xsltproc || echo "Warning: Failed to install xsltproc"
7068
fi
69+
tail -n +$init_line results/e2e.results | xsltproc filter.xsl - > results/$junitFilename
70+
7171
# Copy logs and diagnose
7272
cp -r bin/out/test-results/* results

0 commit comments

Comments
 (0)