nitcc: tests script return non-zero on failure (print is not enough)
[nit.git] / tests / test_opts.nit
index 05e41b4..b0a2cce 100644 (file)
@@ -36,6 +36,12 @@ for x in ctx.rest do
        print x
 end
 
+var errors = ctx.errors
+if errors.not_empty then
+       print "Errors: {errors.length}"
+       print ctx.errors.join("\n")
+end
+
 print "OptionBool: {ob.value}"
 print "OptionCount: {oc.value}"
 if os.value == null then os.value = ""