Skip to content

Commit 0608d8f

Browse files
committed
Fix printing browsers' version in testSelenium
1 parent 73ceb2f commit 0608d8f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/testSelenium.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,10 @@ suite('selenium', function() {
161161

162162
try {
163163
console.log('Using Firefox: ' + firefoxStableBinaryPath);
164-
console.log('Version: ' + childProcess.execSync(firefoxStableBinaryPath + ' --version').replace('\n', ''));
165-
console.log('Beta Version: ' + childProcess.execSync(firefoxBetaBinaryPath + ' --version').replace('\n', ''));
166-
console.log('Aurora Version: ' + childProcess.execSync(firefoxAuroraBinaryPath + ' --version').replace('\n', ''));
164+
console.log('Version: ' + childProcess.execSync(firefoxStableBinaryPath + ' --version').toString().replace('\n', ''));
165+
console.log('Beta Version: ' + childProcess.execSync(firefoxBetaBinaryPath + ' --version').toString().replace('\n', ''));
166+
//console.log('Aurora Version: ' + childProcess.execSync(firefoxAuroraBinaryPath + ' --version').toString().replace('\n', ''));
167+
console.log('Nightly Version: ' + childProcess.execSync(firefoxNightlyBinaryPath + ' --version').toString().replace('\n', ''));
167168
} catch (e) {}
168169

169170
if (process.env.GCM_API_KEY && !fs.existsSync(chromeBinaryPath)) {
@@ -172,7 +173,7 @@ suite('selenium', function() {
172173

173174
try {
174175
console.log('Using Chromium: ' + chromeBinaryPath);
175-
console.log('Version: ' + childProcess.execSync(chromeBinaryPath + ' --version').replace('\n', ''));
176+
console.log('Version: ' + childProcess.execSync(chromeBinaryPath + ' --version').toString().replace('\n', ''));
176177
} catch (e) {}
177178
});
178179
});

0 commit comments

Comments
 (0)