diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2017-10-18 17:44:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-18 17:44:50 +0200 |
commit | 56e891dea12cb5a8d6c5e92e56adb5925bc4160d (patch) | |
tree | 491581b5942162cb7a8b2c42fc61009a0b2439b3 | |
parent | 7037facc2243ec24c2b36b770236c05d300aa513 (diff) | |
download | jquery-56e891dea12cb5a8d6c5e92e56adb5925bc4160d.tar.gz jquery-56e891dea12cb5a8d6c5e92e56adb5925bc4160d.zip |
Tests: Make Node tests work for paths with spaces in them
Without this patch Jenkins tests fail as jQuery job names there contain spaces,
e.g. "jQuery Core".
Closes gh-3821
-rw-r--r-- | build/tasks/node_smoke_tests.js | 2 | ||||
-rw-r--r-- | build/tasks/promises_aplus_tests.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/build/tasks/node_smoke_tests.js b/build/tasks/node_smoke_tests.js index 157aa80af..bd0a9150e 100644 --- a/build/tasks/node_smoke_tests.js +++ b/build/tasks/node_smoke_tests.js @@ -22,7 +22,7 @@ module.exports = function( grunt ) { var taskName = "node_" + testFilePath.replace( /\.js$/, "" ); grunt.registerTask( taskName, function() { - spawnTest( this.async(), "node test/node_smoke_tests/" + testFilePath ); + spawnTest( this.async(), "node \"test/node_smoke_tests/" + testFilePath + "\"" ); } ); nodeSmokeTests.push( taskName ); diff --git a/build/tasks/promises_aplus_tests.js b/build/tasks/promises_aplus_tests.js index 5bd20ecdc..7f8153448 100644 --- a/build/tasks/promises_aplus_tests.js +++ b/build/tasks/promises_aplus_tests.js @@ -10,7 +10,7 @@ module.exports = function( grunt ) { grunt.registerTask( "promises_aplus_tests:deferred", function() { spawnTest( this.async(), - __dirname + "/../../node_modules/.bin/promises-aplus-tests" + + "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" + " test/promises_aplus_adapters/deferred.js" + " --timeout " + timeout ); @@ -18,7 +18,7 @@ module.exports = function( grunt ) { grunt.registerTask( "promises_aplus_tests:when", function() { spawnTest( this.async(), - __dirname + "/../../node_modules/.bin/promises-aplus-tests" + + "\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" + " test/promises_aplus_adapters/when.js" + " --timeout " + timeout ); |