From e2db8dee1fe37b600324c75727d524f9a626e8ad Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Thu, 5 Sep 2019 14:35:34 -0400 Subject: [PATCH] fixed script to keep newlines in yaml --- cicd_testing/do-fuzz.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cicd_testing/do-fuzz.sh b/cicd_testing/do-fuzz.sh index c318fd3..1680b12 100755 --- a/cicd_testing/do-fuzz.sh +++ b/cicd_testing/do-fuzz.sh @@ -3,7 +3,6 @@ function main() { set -e - set -x # build software git submodule sync --recursive git submodule update --recursive --init @@ -24,12 +23,12 @@ function main() local vid=$(turbo-cli version add -q $bid lib/libehp.so) turbo-cli fuzz --fuzz-config cicd_testing/afl.yaml --app-config cicd_testing/ehp-config.yaml --ver-id $vid - local report=$(turbo-cli log get report $vid) + local report="$(turbo-cli log get report $vid)" echo "The report is: " - echo $report + echo "$report" - local crash_count=$(echo $report|shyaml get-value failing-input-count) + local declare crash_count=$(echo "$report"|shyaml get-value failing-input-count) if [[ $crash_count == 0 ]]; then echo "No crashes found" -- GitLab