From: Manoj Joseph Date: Thu, 29 Apr 2010 03:27:20 +0000 (-0600) Subject: b=21962 Quote the error message in results.yaml X-Git-Tag: 1.10.0.41~5 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=72a29cd28c104ae0948fe5f29146005aa1e5a999;hp=5e33ff74888e3f4997d5908d14eb92d7ec6f49b8 b=21962 Quote the error message in results.yaml Quote and escape the error message in results.yaml i=robert.read i=nicolas.williams --- diff --git a/lustre/tests/yaml.sh b/lustre/tests/yaml.sh index 689f474..506a1e7 100644 --- a/lustre/tests/yaml.sh +++ b/lustre/tests/yaml.sh @@ -168,8 +168,11 @@ yml_log_sub_test() { return_code: $4 EOF shift 4 - printf " error: " - echo $@ + if [ -z "$*" ]; then + printf ' error:\n' + else + printf ' error: "%q"\n' "$*" + fi } yml_log_sub_test_log() {