1- import os
21from create_database_utils import *
32from diagnostics_test_utils import *
43
@@ -22,35 +21,35 @@ def check_build_out(msg, s):
2221# no arguments, but `--`
2322s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test-db' , 'dotnet run --' ], "test2-db" )
2423check_build_out ("Default reply" , s )
25- check_diagnostics (diagnostics_dir = "test2-db/diagnostic " )
24+ check_diagnostics (test_db = "test2-db" )
2625
2726# one argument, no `--`
2827s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test2-db' , 'dotnet run hello' ], "test3-db" )
2928check_build_out ("Default reply" , s )
30- check_diagnostics (diagnostics_dir = "test3-db/diagnostic " )
29+ check_diagnostics (test_db = "test3-db" )
3130
3231# one argument, but `--`
3332s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test3-db' , 'dotnet run -- hello' ], "test4-db" )
3433check_build_out ("Default reply" , s )
35- check_diagnostics (diagnostics_dir = "test4-db/diagnostic " )
34+ check_diagnostics (test_db = "test4-db" )
3635
3736# two arguments, no `--`
3837s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test4-db' , 'dotnet run hello world' ], "test5-db" )
3938check_build_out ("hello, world" , s )
40- check_diagnostics (diagnostics_dir = "test5-db/diagnostic " )
39+ check_diagnostics (test_db = "test5-db" )
4140
4241# two arguments, and `--`
4342s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test5-db' , 'dotnet run -- hello world' ], "test6-db" )
4443check_build_out ("hello, world" , s )
45- check_diagnostics (diagnostics_dir = "test6-db/diagnostic " )
44+ check_diagnostics (test_db = "test6-db" )
4645
4746# shared compilation enabled; tracer should override by changing the command
4847# to `dotnet run -p:UseSharedCompilation=true -p:UseSharedCompilation=false -- hello world`
4948s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test6-db' , 'dotnet run -p:UseSharedCompilation=true -- hello world' ], "test7-db" )
5049check_build_out ("hello, world" , s )
51- check_diagnostics (diagnostics_dir = "test7-db/diagnostic " )
50+ check_diagnostics (test_db = "test7-db" )
5251
5352# option passed into `dotnet run`
5453s = run_codeql_database_create_stdout (['dotnet clean' , 'rm -rf test7-db' , 'dotnet build' , 'dotnet run --no-build hello world' ], "test8-db" )
5554check_build_out ("hello, world" , s )
56- check_diagnostics (diagnostics_dir = "test8-db/diagnostic " )
55+ check_diagnostics (test_db = "test8-db" )
0 commit comments