Merge "Fix for incorrect cvp tests fail status"
diff --git a/cvp-runner.groovy b/cvp-runner.groovy
index 13f41ea..f6ec27b 100644
--- a/cvp-runner.groovy
+++ b/cvp-runner.groovy
@@ -121,6 +121,18 @@
                         url: '',
                         xpath: '/testsuite/testcase[@classname="tests.test_vm2vm"]/properties/property']]
                 }
+                try {
+                    sh """
+                        for i in ${artifacts_dir}/*.xml; do
+                            grep 'failures="0"' \$i
+                            grep 'errors="0"' \$i
+                        done
+                    """
+                } catch(err) {
+                    currentBuild.result = "FAILURE"
+                    common.errorMsg("[ERROR] Failures or errors is not zero in ${artifacts_dir}/*.xml")
+                    throw err
+                }
             }
         }
     }