Skip to content

Commit 8689dee

Browse files
committed
Gruntfile: Remove project prefix from TestSwarm job name
* Also added a line break to separate the for statement from the testswarm chain. * Passing explicit false instead of empty string as `extra`.
1 parent 62b30d0 commit 8689dee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build/tasks/testswarm.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ function submit( commit, runs, configFile, extra, done ) {
4141
config = grunt.file.readJSON( configFile ).jqueryui,
4242
commitUrl = "https://github.com/jquery/jquery-ui/commit/" + commit;
4343

44-
if ( extra ) {
45-
extra = " " + extra;
46-
}
44+
extra = " (1.9" + ( extra ? "; " + extra : "" ) + ")";
4745

4846
for ( testName in runs ) {
4947
runs[ testName ] = config.testUrl + commit + "/tests/unit/" + runs[ testName ];
5048
}
49+
5150
testswarm.createClient({
5251
url: config.swarmUrl,
5352
pollInterval: 10000,
@@ -59,7 +58,7 @@ function submit( commit, runs, configFile, extra, done ) {
5958
token: config.authToken
6059
})
6160
.addjob({
62-
name: "jQuery UI 1-9 #<a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
61+
name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
6362
runs: runs,
6463
runMax: config.runMax,
6564
browserSets: config.browserSets
@@ -77,7 +76,7 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
7776
for ( test in tests ) {
7877
latestTests[ test ] = tests[ test ] + "?nojshint=true";
7978
}
80-
submit( commit, latestTests, configFile, "", this.async() );
79+
submit( commit, latestTests, configFile, false, this.async() );
8180
});
8281

8382
grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, minor ) {

0 commit comments

Comments
 (0)