Skip to content

Commit 315cf29

Browse files
committed
fix test
1 parent 620730d commit 315cf29

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/AppInstallerCLIE2ETests/ConfigureCommand.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ public void RunCommandOnSetResourceTest()
400400
var testConfigFile = Path.Combine(testDir, "RunCommandOnSet.yml");
401401
File.Copy(TestCommon.GetTestDataFile("Configuration\\RunCommandOnSet.yml"), testConfigFile);
402402

403+
var content = File.ReadAllText(testConfigFile);
404+
content = content.Replace("<PathToBeReplaced>", testDir);
405+
File.WriteAllText(testConfigFile, content);
406+
403407
var result = TestCommon.RunAICLICommand(CommandAndAgreementsAndVerbose, testConfigFile, timeOut: 300000);
404408
Assert.AreEqual(0, result.ExitCode);
405409

src/AppInstallerCLIE2ETests/TestData/Configuration/RunCommandOnSet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ resources:
1212
- -NoLogo
1313
- -Command
1414
- |
15-
Set-Content -Path ${WinGetConfigRoot}\TestFile.txt -Value 'TestContent'
15+
Set-Content -Path <PathToBeReplaced>\TestFile.txt -Value 'TestContent'

0 commit comments

Comments
 (0)