e44a7e37b6
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
17 lines
371 B
JavaScript
17 lines
371 B
JavaScript
if(this["dojo"]){
|
|
dojo.provide("doh._rhinoRunner");
|
|
}
|
|
|
|
doh.debug = print;
|
|
|
|
// Override the doh._report method to make it quit with an
|
|
// appropriate exit code in case of test failures.
|
|
(function(){
|
|
var oldReport = doh._report;
|
|
doh._report = function(){
|
|
oldReport.apply(doh, arguments);
|
|
if(this._failureCount > 0 || this._errorCount > 0){
|
|
quit(1);
|
|
}
|
|
}
|
|
})();
|