Skip to content

Commit a5b28e1

Browse files
authored
Added TestId if test is run with specs
If Test is run with --specs then WPT was not returning any testid so we can create a result url and show it to user. This change will help the caller get the testId and so create a link to Test Result
1 parent 9c4d4d8 commit a5b28e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/webpagetest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ function runTest(what, options, callback) {
362362
polling = setTimeout(getTestResults.bind(this, testId,
363363
resultsOptions, poll.bind(this)), options.pollResults);
364364
} else {
365+
if (!data) {
366+
data = {testId: testId};
367+
}
365368
resultsCallback(err, data);
366369
}
367370
}

0 commit comments

Comments
 (0)