Skip to content

Commit 8d96b42

Browse files
AMQP 1.0 .NET-based suite: an attempt to fix 'dotnet restore' on Ubuntu 24.04
1 parent ee0ec8c commit 8d96b42

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

deps/rabbit/test/amqp_system_SUITE.erl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,14 @@ end_per_testcase(Testcase, Config) ->
9090
build_dotnet_test_project(Config) ->
9191
TestProjectDir = filename:join(
9292
[?config(data_dir, Config), "fsharp-tests"]),
93+
Env = [
94+
%% https://learn.microsoft.com/en-us/dotnet/core/runtime-config/globalization
95+
%% https://github.com/dotnet/runtime/blob/main/docs/design/features/globalization-invariant-mode.md
96+
{"DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "true"}
97+
],
9398
Ret = rabbit_ct_helpers:exec(["dotnet", "restore"],
94-
[{cd, TestProjectDir}]),
99+
[{cd, TestProjectDir},
100+
{env, Env}]),
95101
case Ret of
96102
{ok, _} ->
97103
rabbit_ct_helpers:set_config(

deps/rabbit/test/amqp_system_SUITE_data/fsharp-tests/fsharp-tests.fsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
44
<TargetFramework>net8.0</TargetFramework>
5+
<InvariantGlobalization>true</InvariantGlobalization>
56
</PropertyGroup>
67
<ItemGroup>
78
<Compile Include="Program.fs" />

0 commit comments

Comments
 (0)