[ci] Output nunit xml if "verify" test step fails
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Sat, 29 Apr 2017 21:43:53 +0000 (23:43 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Sat, 29 Apr 2017 21:43:53 +0000 (23:43 +0200)
Allows us to better catch this on Jenkins.

runtime/Makefile.am

index 98609dc55babab32f450d31f7848f757c71e59e5..ae87dfa88c37f436cff9022ff5b69127d58b7e8e 100644 (file)
@@ -164,6 +164,7 @@ mcs-compileall: mono-wrapper etc/mono/config
            else \
              echo $$i verification failed; ok=false; \
            fi; done; done; \
+       if [ "$$ok" = "false" ]; then echo "<?xml version='1.0' encoding='utf-8'?><test-results failures='1' total='1' not-run='0' name='verify' date='$$(date +%F)' time='$$(date +%T)'><test-suite name='mcs-compileall' success='False' time='0'><results><test-case name='fail' executed='True' success='False' time='0'><failure><message>Verifying framework assemblies failed. Check the log for more details.</message><stack-trace></stack-trace></failure></test-case></results></test-suite></test-results>" > TestResult-verify.xml; fi; \
        $$ok
 
 if NACL_CODEGEN