File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
csharp/ql/integration-tests/all-platforms Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+
1
3
def check_build_out (msg , s ):
4
+ lines = s .splitlines ()
5
+ lines = s .splitlines ()
2
6
assert (
3
- "[build-stdout] " + msg in s
7
+ any (( "[build-stdout]" in line ) and ( msg in line ) for line in lines )
4
8
), f"The C# tracer did not interpret the dotnet path-to-application command correctly."
5
9
6
-
7
10
def test1 (codeql , csharp ):
8
11
codeql .database .create (command = "dotnet build" )
9
12
Original file line number Diff line number Diff line change 1
1
def check_build_out (msg , s ):
2
+ lines = s .splitlines ()
2
3
assert (
3
- "[build-stdout] " + msg in s
4
+ any (( "[build-stdout]" in line ) and ( msg in line ) for line in lines )
4
5
), "The C# tracer did not interpret the 'dotnet run' command correctly"
5
6
6
-
7
7
# no arguments
8
8
def test_no_args (codeql , csharp ):
9
9
s = codeql .database .create (command = "dotnet run" , _capture = "stdout" )
You can’t perform that action at this time.
0 commit comments