Skip to content

Commit 647b839

Browse files
Krinklescottgonzalez
authored andcommitted
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 f366863 commit 647b839

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build/tasks/testswarm.js

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

4343
if ( extra ) {
44-
extra = " " + extra;
44+
extra = " (" + extra + ")";
4545
}
4646

4747
for ( testName in runs ) {
4848
runs[ testName ] = config.testUrl + commit + "/tests/unit/" + runs[ testName ];
4949
}
50+
5051
testswarm.createClient({
5152
url: config.swarmUrl,
5253
pollInterval: 10000,
@@ -58,7 +59,7 @@ function submit( commit, runs, configFile, extra, done ) {
5859
token: config.authToken
5960
})
6061
.addjob({
61-
name: "jQuery UI #<a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
62+
name: "Commit <a href='" + commitUrl + "'>" + commit.substr( 0, 10 ) + "</a>" + extra,
6263
runs: runs,
6364
runMax: config.runMax,
6465
browserSets: config.browserSets
@@ -76,7 +77,7 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
7677
for ( test in tests ) {
7778
latestTests[ test ] = tests[ test ] + "?nojshint=true";
7879
}
79-
submit( commit, latestTests, configFile, "", this.async() );
80+
submit( commit, latestTests, configFile, false, this.async() );
8081
});
8182

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

0 commit comments

Comments
 (0)