X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fyaml.sh;h=506a1e73ae81201c3873c6ac33c1cae30f066963;hp=689f474a14dfd30aa22b9015504b007dcaea6b9d;hb=72a29cd28c104ae0948fe5f29146005aa1e5a999;hpb=5e33ff74888e3f4997d5908d14eb92d7ec6f49b8 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() {