@@ -27,7 +27,7 @@ SauceDriverProvider.prototype.updateJob = function(update) {
27
27
var deferred = q . defer ( ) ;
28
28
var self = this ;
29
29
this . driver_ . getSession ( ) . then ( function ( session ) {
30
- console . log ( 'SauceLabs results avaiable at http://saucelabs.com/jobs/' +
30
+ console . log ( 'SauceLabs results available at http://saucelabs.com/jobs/' +
31
31
session . getId ( ) ) ;
32
32
self . sauceServer_ . updateJob ( session . getId ( ) , update , function ( err ) {
33
33
if ( err ) {
@@ -55,11 +55,15 @@ SauceDriverProvider.prototype.setupEnv = function() {
55
55
} ) ;
56
56
this . config_ . capabilities . username = this . config_ . sauceUser ;
57
57
this . config_ . capabilities . accessKey = this . config_ . sauceKey ;
58
- this . config_ . seleniumAddress = 'http://' + this . config_ . sauceUser + ':' +
59
- this . config_ . sauceKey + '@ondemand.saucelabs.com:80/wd/hub' ;
58
+ var auth = 'http://' + this . config_ . sauceUser + ':' +
59
+ this . config_ . sauceKey + '@' ;
60
+ this . config_ . seleniumAddress = auth +
61
+ ( this . config_ . sauceSeleniumAddress ? this . config_ . sauceSeleniumAddress :
62
+ 'ondemand.saucelabs.com:80/wd/hub' ) ;
60
63
61
- // Append filename to capabilities.name so that it's easier to identify tests
62
- if ( this . config_ . capabilities . name && this . config_ . capabilities . shardTestFiles ) {
64
+ // Append filename to capabilities.name so that it's easier to identify tests.
65
+ if ( this . config_ . capabilities . name &&
66
+ this . config_ . capabilities . shardTestFiles ) {
63
67
this . config_ . capabilities . name += (
64
68
':' + this . config_ . specs . toString ( ) . replace ( / ^ .* [ \\ \/ ] / , '' ) ) ;
65
69
}
0 commit comments