aboutsummaryrefslogtreecommitdiff
path: root/automated/linux/fwts
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2020-10-19 13:00:36 +0200
committerAnders Roxell <anders.roxell@linaro.org>2020-10-23 14:45:48 +0200
commit9bdd20014de503d43763354f42655ecf83d090bb (patch)
treed030616cc3181b3b6a37372f95975dd9e09d3d47 /automated/linux/fwts
parente09be8e5a18315bdaaf7c9657817b10f9dd77161 (diff)
fwts: fix test name parameter
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'automated/linux/fwts')
-rwxr-xr-xautomated/linux/fwts/fwts.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/automated/linux/fwts/fwts.sh b/automated/linux/fwts/fwts.sh
index bbe2ebc3..c617e2e0 100755
--- a/automated/linux/fwts/fwts.sh
+++ b/automated/linux/fwts/fwts.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -x
+
# shellcheck disable=SC1091
. ../../lib/sh-test-lib
OUTPUT="$(pwd)/output"
@@ -168,7 +170,11 @@ parse_fwts_test_results() {
run_test() {
- fwts "${TESTS}" - 2>&1 | tee -a "${RESULT_LOG}"
+ # Double quote to prevent globbing and word splitting.
+ # In this case we don't want to add extra quote since that can make the
+ # string get splitted.
+ # shellcheck disable=SC2086
+ fwts ${TESTS} - 2>&1 | tee -a "${RESULT_LOG}"
parse_fwts_test_results
}