Skip to content

Commit e448387

Browse files
fix: Update test tool debug folder name case (#1558)
Update debug folder name to match exact case of the output folder from dotnet build so tests run on case sensitive file systems.
1 parent 0e443c1 commit e448387

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tools/LambdaTestTool/tests/Amazon.Lambda.TestTool.Tests.NET6/SourceGeneratorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void SourceGeneratorInputAndOutput()
1010
Mode = TestToolStartup.RunConfiguration.RunMode.Test,
1111
OutputWriter = new StringWriter()
1212
};
13-
var buildPath = Path.GetFullPath($"../../../../LambdaFunctions/net6/SourceGeneratorExample/bin/debug/net6.0");
13+
var buildPath = Path.GetFullPath($"../../../../LambdaFunctions/net6/SourceGeneratorExample/bin/Debug/net6.0");
1414

1515
TestToolStartup.Startup("Unit Tests", null, new string[] { "--path", buildPath, "--no-ui", "--payload", "{\"Name\" : \"FooBar\"}", "--config-file", "SourceGeneratorInputAndOutput.json" }, runConfiguration);
1616
Assert.Contains("Response = FooBar", runConfiguration.OutputWriter.ToString());
@@ -24,7 +24,7 @@ public void SourceGeneratorAsyncInputOnly()
2424
Mode = TestToolStartup.RunConfiguration.RunMode.Test,
2525
OutputWriter = new StringWriter()
2626
};
27-
var buildPath = Path.GetFullPath($"../../../../LambdaFunctions/net6/SourceGeneratorExample/bin/debug/net6.0");
27+
var buildPath = Path.GetFullPath($"../../../../LambdaFunctions/net6/SourceGeneratorExample/bin/Debug/net6.0");
2828

2929
TestToolStartup.Startup("Unit Tests", null, new string[] { "--path", buildPath, "--no-ui", "--payload", "{\"Name\" : \"FooBar\"}", "--config-file", "SourceGeneratorAsyncInputOnly.json" }, runConfiguration);
3030
Assert.Contains("Calling function with:", runConfiguration.OutputWriter.ToString());

Tools/LambdaTestTool/tests/Amazon.Lambda.TestTool.Tests.Shared/TestUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public static string GetLambdaFunctionSourceFile(string projectName, string file
8080
public static string GetLambdaFunctionBuildPath(string projectName)
8181
{
8282
#if NETCORE_2_1
83-
return Path.GetFullPath($"../../../../LambdaFunctions/netcore21/{projectName}/bin/debug/netcoreapp2.1");
83+
return Path.GetFullPath($"../../../../LambdaFunctions/netcore21/{projectName}/bin/Debug/netcoreapp2.1");
8484
#elif NETCORE_3_1
85-
return Path.GetFullPath($"../../../../LambdaFunctions/netcore31/{projectName}/bin/debug/netcoreapp3.1");
85+
return Path.GetFullPath($"../../../../LambdaFunctions/netcore31/{projectName}/bin/Debug/netcoreapp3.1");
8686
#endif
8787
}
8888
}

0 commit comments

Comments
 (0)