summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2018-11-26 14:49:27 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2018-11-26 14:49:27 +0530
commit842bc4c3ad8a0895f4a08b608471b5d98daf9a28 (patch)
treefd1b0c1792e9dced8fdaa66add8426f4afa929a4
parenta9403cfe028db4aad80c29d174d065ddd26e3651 (diff)
downloadtest-definitions-smc-842bc4c3ad8a0895f4a08b608471b5d98daf9a28.tar.gz
smc: fix parser
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xautomated/linux/spectre-meltdown-checker-test/spectre-meltdown-checker-test.sh4
1 files changed, 1 insertions, 3 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 b36de31..9b9ba64 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
@@ -37,9 +37,7 @@ smc_install() {
# Parse SMC output
parse_smc_output() {
- grep "SUMMARY" "$1" \
- | cut -d' ' -f3-12 \
- | sed -e's/ /\n/g' \
+ awk '{print $1 " " $2}' "$1" \
| sed 's/OK/pass/; s/VULN/fail/; s/KO/fail/; s/UNK/skip/' >> "${RESULT_FILE}"
#TODO
cat "${RESULT_FILE}"