From 72a29cd28c104ae0948fe5f29146005aa1e5a999 Mon Sep 17 00:00:00 2001 From: Manoj Joseph Date: Wed, 28 Apr 2010 21:27:20 -0600 Subject: [PATCH] b=21962 Quote the error message in results.yaml Quote and escape the error message in results.yaml i=robert.read i=nicolas.williams --- lustre/tests/yaml.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() { -- 1.8.3.1