Skip to content

Commit d6f0e61

Browse files
set up approval test file location
1 parent b316f19 commit d6f0e61

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/Microsoft.ML.GenAI.Phi.Tests/Phi2Tests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public class Phi2Tests
1818
{
1919
public Phi2Tests()
2020
{
21+
if (Environment.GetEnvironmentVariable("HELIX_CORRELATION_ID") != null)
22+
{
23+
Approvals.UseAssemblyLocationForApprovedFiles();
24+
}
2125
torch.set_default_device("meta");
2226
}
2327

test/Microsoft.ML.GenAI.Phi.Tests/Phi3Tests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ public class Phi3Tests
1919
{
2020
public Phi3Tests()
2121
{
22+
if (Environment.GetEnvironmentVariable("HELIX_CORRELATION_ID") != null)
23+
{
24+
Approvals.UseAssemblyLocationForApprovedFiles();
25+
}
26+
2227
torch.set_default_device("meta");
2328
}
2429

0 commit comments

Comments
 (0)