summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2018-11-26 14:59:33 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2018-11-26 14:59:33 +0530
commit6446ffee08e0a8b6bacd0ba1815f8a7f9ed0a34f (patch)
tree3b385877a1fad6aebfe4239399f85d544ceca819
parent842bc4c3ad8a0895f4a08b608471b5d98daf9a28 (diff)
downloadtest-definitions-smc-6446ffee08e0a8b6bacd0ba1815f8a7f9ed0a34f.tar.gz
smc: remove extra char ':'
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xautomated/linux/spectre-meltdown-checker-test/spectre-meltdown-checker-test.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/automated/linux/spectre-meltdown-checker-test/spectre-meltdown-checker-test.sh b/automated/linux/spectre-meltdown-checker-test/spectre-meltdown-checker-test.sh
index 9b9ba64..ab66556 100755
--- a/automated/linux/spectre-meltdown-checker-test/spectre-meltdown-checker-test.sh
+++ b/automated/linux/spectre-meltdown-checker-test/spectre-meltdown-checker-test.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-set -x
+
# shellcheck disable=SC1091
. ../../lib/sh-test-lib
OUTPUT="$(pwd)/output"
@@ -38,15 +38,12 @@ smc_install() {
# Parse SMC output
parse_smc_output() {
awk '{print $1 " " $2}' "$1" \
+ | sed 's/://' \
| sed 's/OK/pass/; s/VULN/fail/; s/KO/fail/; s/UNK/skip/' >> "${RESULT_FILE}"
- #TODO
- cat "${RESULT_FILE}"
}
smc_run() {
./spectre-meltdown-checker.sh --no-color --batch | tee "${OUTPUT}/${LOG_FILE}.log"
- #TODO
- cat "${OUTPUT}/${LOG_FILE}.log"
parse_smc_output "${OUTPUT}/${LOG_FILE}.log"
}