Whamcloud - gitweb
b=22075 buffalo-v2 should detect test timeouts
[fs/lustre-release.git] / lustre / tests / yaml.sh
index 506a1e7..4dbdfe7 100644 (file)
@@ -159,15 +159,20 @@ yml_log_test_status() {
 EOF
 }
 
 EOF
 }
 
-yml_log_sub_test() {
+yml_log_sub_test_begin() {
     cat <<EOF
         -
             name: $1
     cat <<EOF
         -
             name: $1
-            status: $2
-            duration: $3
-            return_code: $4
 EOF
 EOF
-    shift 4
+}
+
+yml_log_sub_test_end() {
+    cat <<EOF
+            status: $1
+            duration: $2
+            return_code: $3
+EOF
+    shift 3
     if [ -z "$*" ]; then
         printf '            error:\n'
     else
     if [ -z "$*" ]; then
         printf '            error:\n'
     else