Add failing builds when tests fail

This commit is contained in:
Ross Boucher committed 2009-04-09 13:11:41 -07:00
1 parent 5365d1d1fd
commit 417f5c3f0f
1 file changed
+6 -1
+6 -1
View File
@@ -76,7 +76,12 @@ end
task :test => [:build] do
tests = "'" + FileList['Tests/**/*.j'].join("' '") + "'"
system %{ojtest #{tests} }
build_result = %x{ojtest #{tests} }
if build_result.match(/Test suite failed/i)
puts "tests failed, aborting the build"
rake abort
end
end
task :docs do