diff --git a/src/sauce/settings.js b/src/sauce/settings.js index b2b45b7..e37816f 100644 --- a/src/sauce/settings.js +++ b/src/sauce/settings.js @@ -20,6 +20,7 @@ var config = { tunnelTimeout: process.env.SAUCE_TUNNEL_CLOSE_TIMEOUT, useTunnels: !!argv.create_tunnels, maxTunnels: argv.num_tunnels || 1, + fastFailRegexps: process.env.SAUCE_TUNNEL_FAST_FAIL_REGEXPS, locksServerLocation: argv.locks_server || process.env.LOCKS_SERVER, locksOutageTimeout: 1000 * 60 * 5, diff --git a/src/sauce/tunnel.js b/src/sauce/tunnel.js index c21ccf8..d36662b 100644 --- a/src/sauce/tunnel.js +++ b/src/sauce/tunnel.js @@ -69,6 +69,10 @@ module.exports = { logfile: logFilePath }; + if (settings.fastFailRegexps) { + sauceOptions.fastFailRegexps = settings.fastFailRegexps; + } + var seleniumPort = options.seleniumPort; if (seleniumPort) { sauceOptions.port = seleniumPort;