Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/test.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/test.js b/bin/test.js
index e794bf3..c2cebd4 100644
--- a/bin/test.js
+++ b/bin/test.js
@@ -13,9 +13,14 @@ var runSauceLabs = hasSauceLabEnvVars || pathExists.sync(zuulrcPath)
npmRun('test-node', function (code) {
if (code === 0) {
- var scriptName = runSauceLabs ? 'test-browser' : 'test-browser-headless'
- npmRun(scriptName, function (code) {
- process.exit(code)
+ npmRun('test-browser-headless', function (code) {
+ if (code === 0 && runSauceLabs) {
+ npmRun('test-browser', function (code) {
+ process.exit(code)
+ })
+ } else {
+ process.exit(code)
+ }
})
} else {
process.exit(code)