Fix CC tests

Change-Id: I1ce324cd83460723a740386788fe79b47593a40b
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index eb74b22..5fe02db 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -112,7 +112,7 @@
     common.infoMsg("testModel finished: SUCCESS")
   } else {
     error('testModel finished: FAILURE')
-    currentBuild.result = "FAILURE"
+    throw new RuntimeException('Test stage finished: FAILURE')
   }
 
 }