@@ -32,7 +32,7 @@ SLEEP_DELAY="${SLEEP_DELAY:-120}"
32
32
# github user/project we are going to work with
33
33
PROJECT=" keylime/rust-keylime"
34
34
35
- # TF_JOB_DESC points to a Testing farm job that does code coverage measurement and
35
+ # TF_JOB_DESC points to a Testing farm job that does code coverage measurement and
36
36
# uploads coverage XML files to a web drive
37
37
# currently we are doing that in a job running tests on Fedora-39
38
38
TF_JOB_DESC=" testing-farm:fedora-39-x86_64"
@@ -89,11 +89,11 @@ function do_GitHub_API_call() {
89
89
}
90
90
91
91
92
- # if the GitHub Action has been triggered by a PR,
92
+ # if the GitHub Action has been triggered by a PR,
93
93
# we need to find Testing farm test results through GitHub API
94
94
if [ -n " ${GITHUB_SHA} " -a -z " ${TF_ARTIFACTS_URL} " -a -z " ${TT_LOG} " ]; then
95
95
96
- echo " Trying to find Testing Farm / Packig CI test results using GitHub API"
96
+ echo " Trying to find Testing Farm / Packit CI test results using GitHub API"
97
97
98
98
echo " Fist I need to find the respective PR commit"
99
99
GITHUB_API_SHA_URL=" ${GITHUB_API_COMMIT_URL} /${GITHUB_SHA} "
@@ -140,9 +140,9 @@ echo "TF_TESTLOG=${TF_TESTLOG}"
140
140
# parse the URL of coverage txt file and download it
141
141
curl --retry 5 -s " ${TF_TESTLOG} " & > ${TMPFILE}
142
142
echo " TMPFILE=${TMPFILE} "
143
- # probabbly rewrite, different hardcoded files, need to figureout how to export
143
+ # probably rewrite, different hardcoded files, need to figure out how to export
144
144
145
- # download test coverage
145
+ # download test coverage
146
146
COVERAGE_URL=$( grep " e2e_coverage.txt report is available at" ${TMPFILE} | grep -E -o " https://.*\.txt" )
147
147
echo " COVERAGE_URL=${COVERAGE_URL} "
148
148
if [ -z " ${COVERAGE_URL} " ]; then
@@ -151,7 +151,7 @@ if [ -z "${COVERAGE_URL}" ]; then
151
151
fi
152
152
# download the file
153
153
curl --retry 5 -L -O ${COVERAGE_URL}
154
- # download upstream test coverage
154
+ # download upstream test coverage
155
155
COVERAGE_URL=$( grep " upstream_coverage.xml report is available at" ${TMPFILE} | grep -E -o " https://.*\.xml" )
156
156
echo " COVERAGE_URL=${COVERAGE_URL} "
157
157
if [ -z " ${COVERAGE_URL} " ]; then
0 commit comments