diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-16 00:11:20 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-06-16 00:11:20 +0200 |
commit | 42599a60016ace7765c4dfe763b5b16999e5f937 (patch) | |
tree | 61f40ba3f59a2ec6de5cd3fe419c2ddb1ca1613e | |
parent | c9ff92a00876b7455a641bb6e5e11d19e4dc3688 (diff) | |
download | jquery-ui-42599a60016ace7765c4dfe763b5b16999e5f937.tar.gz jquery-ui-42599a60016ace7765c4dfe763b5b16999e5f937.zip |
Grunt: Fix test urls
-rw-r--r-- | build/tasks/testswarm.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index df4e250d8..c0a5f351f 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -34,7 +34,7 @@ function submit( commit, tests, configFile, done ) { testBase = config.testUrl + commit + "/tests/unit/", testUrls = []; for ( test in tests ) { - testUrls.push( testBase + tests[ test ] + "?nojshint=true" ); + testUrls.push( testBase + tests[ test ] ); } testswarm({ url: config.swarmUrl, @@ -53,7 +53,12 @@ function submit( commit, tests, configFile, done ) { } grunt.registerTask( "testswarm", function( commit, configFile ) { - submit( commit, tests, configFile, this.async() ); + var test, + latestTests = {}; + for ( test in tests ) { + latestTests[ test ] = tests[ test ] + "?nojshint=true"; + } + submit( commit, latestTests, configFile, this.async() ); }); grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) { |