Skip to content

Commit fa2d459

Browse files
committed
ff
1 parent 66d53b2 commit fa2d459

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/MSBuildDeviceIntegration/Tests/DeploymentTest.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ public void AfterDeploymentTests ()
6464
if (HasDevices && proj != null)
6565
RunAdbCommand ($"uninstall {proj.PackageName}");
6666

67-
if (TestContext.CurrentContext.Result.FailCount == 0 && builder != null && Directory.Exists (Path.Combine (Root, builder.ProjectDirectory)))
68-
Directory.Delete (Path.Combine (Root, builder.ProjectDirectory), recursive: true);
67+
string output = Path.Combine (Root, builder.ProjectDirectory);
68+
if (TestContext.CurrentContext.Result.FailCount == 0 && builder != null && Directory.Exists (output))
69+
Directory.Delete (output, recursive: true);
6970

70-
foreach (var file in Directory.GetFiles (Path.Combine (Root, builder.ProjectDirectory), "*.log", SearchOption.AllDirectories)) {
71+
foreach (var file in Directory.GetFiles (output, "*.log", SearchOption.AllDirectories)) {
7172
TestContext.AddTestAttachment (file, Path.GetFileName (output));
7273
}
7374
}

0 commit comments

Comments
 (0)