Skip to content

Commit 77283be

Browse files
authored
Merge pull request github#12068 from michaelnebel/csharp/dotnetpublishtest
C#: Avoid that the dotnet publish test refers to a specific .NET vers…
2 parents 3cd2024 + 960f776 commit 77283be

File tree

1 file changed

+3
-2
lines changed
  • csharp/ql/integration-tests/all-platforms/dotnet_publish

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import os
22
from create_database_utils import *
33

4-
run_codeql_database_create(['dotnet publish'], test_db="default-db", db=None, lang="csharp")
4+
artifacts = 'bin/Temp'
5+
run_codeql_database_create([f"dotnet publish -o {artifacts}"], test_db="default-db", db=None, lang="csharp")
56

67
## Check that the publish folder is created.
7-
if not os.path.isdir("bin/Debug/net7.0/publish/"):
8+
if not os.path.isdir(artifacts):
89
raise Exception("The publish artifact folder was not created.")

0 commit comments

Comments
 (0)