Skip to content

Commit b9bcd4c

Browse files
committed
Fix language agnostics tests for .NET 7
1 parent 6a9a902 commit b9bcd4c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/LanguageAgnosticTests/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:6.0.201-alpine3.15-amd64 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:7.0.101-alpine3.16-amd64 AS build
22

33
WORKDIR /project
44

@@ -8,11 +8,11 @@ COPY tests/LanguageAgnosticTests tests/LanguageAgnosticTests
88

99
RUN dotnet build tests/LanguageAgnosticTests
1010

11-
FROM mcr.microsoft.com/dotnet/runtime:6.0.3-alpine3.15-amd64
11+
FROM mcr.microsoft.com/dotnet/runtime:7.0.1-alpine3.16-amd64
1212

1313
WORKDIR /tests
1414

15-
COPY --from=build /project/tests/LanguageAgnosticTests/bin/Debug/net6.0/ bin
15+
COPY --from=build /project/tests/LanguageAgnosticTests/bin/Debug/net7.0/ bin
1616
COPY --from=build /project/tests/LanguageAgnosticTests/*.py .
1717
COPY --from=build /project/tests/LanguageAgnosticTests/*.docopt .
1818

tests/LanguageAgnosticTests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Compile the **Testee** project then run the following commands:
55

66
cd tests/LanguageAgnosticTests
77
dotnet build
8-
python language_agnostic_tester.py ../bin/Debug/net6.0/Testee
8+
python language_agnostic_tester.py bin/Debug/net7.0/Testee
99

1010
On Windows, use the following commands:
1111

1212
dotnet build tests\Testee
1313
cd tests\LanguageAgnosticTests
14-
python language_agnostic_tester.py ..\bin\Debug\net6.0\Testee.exe
14+
python language_agnostic_tester.py bin\Debug\net7.0\Testee.exe
1515

1616
Alternatively, build and run the following Docker image (assuming the current
1717
working directory is the same as the directory containing this file):

0 commit comments

Comments
 (0)