Skip to content

Commit b88c58a

Browse files
authored
Merge pull request #5451 from Microsoft/users/kavipriya/testresultsfixm123
Porting test results fix for M123
2 parents bb33689 + b4f2563 commit b88c58a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tasks/VsTest/vstest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,12 @@ function discoverTestFromFilteredFilter(vsVersion: number, testCaseFilterFile: s
506506

507507
function runVStest(testResultsDirectory: string, settingsFile: string, vsVersion: number): Q.Promise<number> {
508508
const defer = Q.defer<number>();
509+
510+
//Re-calculate the results directory based on final runsettings and clean up again if required.
511+
testResultsDirectory = getTestResultsDirectory(settingsFile, testResultsDirectory);
512+
tl.rmRF(testResultsDirectory);
513+
tl.mkdirP(testResultsDirectory);
514+
509515
if (isTiaAllowed()) {
510516
let testCaseFilterFile = "";
511517
let testCaseFilterOutput = "";

0 commit comments

Comments
 (0)