Skip to content

Commit d831f23

Browse files
Liudmila Molkovadnduffy
Liudmila Molkova
authored andcommitted
Return to root solution dir after tests are executed (microsoft#406)
1 parent e1dfb26 commit d831f23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RunTestsCore.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Function Execute-DotnetProcess {
2727
}
2828
}
2929

30+
Push-Location
31+
3032
[PSObject[]]$global:failed = @();
3133
$global:WorkingDirectory = (pwd).Path;
3234

@@ -48,6 +50,8 @@ $TestProjects |% {
4850
-WorkingDirectory $currentWorkingDirectory;
4951
}
5052

53+
Pop-Location
54+
5155
If ($global:failed.Count -gt 0) {
5256
Throw "Test execution failed";
5357
}

0 commit comments

Comments
 (0)