@@ -122,12 +122,6 @@ suite('selenium', function() {
122
122
123
123
promises . push ( seleniumInit . downloadFirefoxNightly ( ) ) ;
124
124
125
- try {
126
- console . log ( 'Using Firefox: ' + firefoxStableBinaryPath ) ;
127
- console . log ( 'Version: ' + childProcess . execSync ( firefoxStableBinaryPath + ' --version' ) ) ;
128
- console . log ( 'Beta Version: ' + childProcess . execSync ( firefoxBetaBinaryPath + ' --version' ) ) ;
129
- } catch ( e ) { }
130
-
131
125
if ( process . env . GCM_API_KEY ) {
132
126
chromeBinaryPath = process . env . CHROME ;
133
127
if ( chromeBinaryPath === 'nightly' ) {
@@ -144,11 +138,6 @@ suite('selenium', function() {
144
138
}
145
139
146
140
promises . push ( seleniumInit . downloadChromeDriver ( ) ) ;
147
-
148
- try {
149
- console . log ( 'Using Chromium: ' + chromeBinaryPath ) ;
150
- console . log ( 'Version: ' + childProcess . execSync ( chromeBinaryPath + ' --version' ) ) ;
151
- } catch ( e ) { }
152
141
}
153
142
154
143
return Promise . all ( promises )
@@ -161,9 +150,20 @@ suite('selenium', function() {
161
150
throw new Error ( 'Firefox binary doesn\'t exist at ' + firefoxBetaBinaryPath + '.' . bold . red ) ;
162
151
}
163
152
153
+ try {
154
+ console . log ( 'Using Firefox: ' + firefoxStableBinaryPath ) ;
155
+ console . log ( 'Version: ' + childProcess . execSync ( firefoxStableBinaryPath + ' --version' ) ) ;
156
+ console . log ( 'Beta Version: ' + childProcess . execSync ( firefoxBetaBinaryPath + ' --version' ) ) ;
157
+ } catch ( e ) { }
158
+
164
159
if ( process . env . GCM_API_KEY && ! fs . existsSync ( chromeBinaryPath ) ) {
165
160
throw new Error ( 'Chrome binary doesn\'t exist at ' + chromeBinaryPath + '. Use your installed Chrome binary by setting the CHROME environment' . bold . red ) ;
166
161
}
162
+
163
+ try {
164
+ console . log ( 'Using Chromium: ' + chromeBinaryPath ) ;
165
+ console . log ( 'Version: ' + childProcess . execSync ( chromeBinaryPath + ' --version' ) ) ;
166
+ } catch ( e ) { }
167
167
} ) ;
168
168
} ) ;
169
169
0 commit comments