aboutsummaryrefslogtreecommitdiff
path: root/includes/js/util/doh/_rhinoRunner.js
blob: ae475972307c19fe7b04c1197d2ecd0171487d78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
		}
	}
})();