Avoid reporting tests to Sauce Labs when errors occur to force a retry.

This commit is contained in:
John-David Dalton
2014-05-03 00:16:15 -07:00
parent 53bfafb84c
commit d08febc711
4 changed files with 25 additions and 4 deletions

View File

@@ -124,7 +124,7 @@
};
// only excuse in Sauce Labs (buggy Safari and timers)
if (location.port != '9001') {
if (!ui.isSauceLabs) {
delete QUnit.config.excused.Chaining['select/reject/sortBy'];
delete QUnit.config.excused.Chaining['select/reject/sortBy in functional style'];
delete QUnit.config.excused.Functions['throttle repeatedly with results'];
@@ -176,6 +176,12 @@
if (!window.require) {
return;
}
// avoid reporting tests to Sauce Labs when errors occur
if (ui.isSauceLabs) {
window.onerror = function() {
QUnit.config.done.length = 0;
};
}
var reBasename = /[\w.-]+$/,
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
modulePath = ui.buildPath.replace(/\.js$/, ''),
@@ -239,4 +245,4 @@
<li><%= data %></li>
</script>
</body>
</html>
</html>