Whamcloud - gitweb
b=21962 Quote the error message in results.yaml
[fs/lustre-release.git] / lustre / tests / yaml.sh
index 689f474..506a1e7 100644 (file)
@@ -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() {