summaryrefslogtreecommitdiff
path: root/tests/futility/test_show_usbpd1.sh
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2022-06-08 13:35:46 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-23 19:26:12 +0000
commita729c3f95d6c6d98c4e4d3500cc7535bf2ceee8a (patch)
tree71162c877dbd7c6aeb7246f3d0426fa91bc4c7a5 /tests/futility/test_show_usbpd1.sh
parent6bcf9f7b7913604368cde04f681ece204779c240 (diff)
downloadvboot-a729c3f95d6c6d98c4e4d3500cc7535bf2ceee8a.tar.gz
tests: Fix most of errors reported by shellcheck
BUG=none BRANCH=none TEST=make runtests Signed-off-by: Jakub Czapiga <czapiga@google.com> Change-Id: I364ac6ace35705f1cfdaec71297523d4c2132b75 Disallow-Recycled-Builds: test-failures Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3695417 Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests/futility/test_show_usbpd1.sh')
-rwxr-xr-xtests/futility/test_show_usbpd1.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/futility/test_show_usbpd1.sh b/tests/futility/test_show_usbpd1.sh
index b5553aae..3998fa77 100755
--- a/tests/futility/test_show_usbpd1.sh
+++ b/tests/futility/test_show_usbpd1.sh
@@ -24,23 +24,24 @@ for s in $SIGS; do
for test in $TESTS; do
- infile=${DATADIR}/${test}.unsigned
+ infile="${DATADIR}/${test}.unsigned"
for h in $HASHES; do
- pemfile=${TESTKEYS}/key_rsa${s}.pem
- outfile=${TMP}.${test}_${s}_${h}.new
+ pemfile="${TESTKEYS}/key_rsa${s}.pem"
+ outfile="${TMP}.${test}_${s}_${h}.new"
# sign it
- ${FUTILITY} sign --type usbpd1 --pem ${pemfile} ${infile} ${outfile}
+ "${FUTILITY}" sign --type usbpd1 --pem "${pemfile}" "${infile}" \
+ "${outfile}"
# make sure it identifies correctly
- ${FUTILITY} verify ${outfile}
+ "${FUTILITY}" verify "${outfile}"
done
done
done
# cleanup
-rm -rf ${TMP}*
+rm -rf "${TMP}"*
exit 0