Skip to content

Commit

Permalink
Merge pull request #741 from thcgit/master
Browse files Browse the repository at this point in the history
Escape spaces for runner path in NodeTestExecutionProvider.
  • Loading branch information
mmanela authored Jan 7, 2019
2 parents 40a551f + bfd8fa3 commit e7a8889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Chutzpah/ChutzpahJSRunners/Chrome/chutzpahRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ module.exports.runner = async (onInitialized, onPageLoaded, isFrameworkLoaded, o
try {
let chromeExecutable = null;

if (chromePath == null) {
if (!chromePath) {
const chromePaths = getChromePaths();
if (chromePaths.length <= 0) {
debugLog("Could not find chrome paths");
Expand Down
2 changes: 1 addition & 1 deletion Chutzpah/ExecutionProviders/NodeTestExecutionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private static string BuildRunnerArgs(TestOptions options, TestContext context,
string runnerArgs;
var testModeStr = testExecutionMode.ToString().ToLowerInvariant();
var timeout = context.TestFileSettings.TestFileTimeout ?? options.TestFileTimeoutMilliseconds ?? Constants.DefaultTestFileTimeout;
runnerArgs = string.Format("{0} {1} {2} {3} {4} {5} {6} {7}",
runnerArgs = string.Format("\"{0}\" {1} {2} {3} {4} {5} {6} {7}",
runnerPath,
fileUrl,
testModeStr,
Expand Down

0 comments on commit e7a8889

Please sign in to comment.