Skip to content

Commit 4673fff

Browse files
committed
Go: Add db and runFunction to go_integration_test
1 parent caaccb7 commit 4673fff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/integration-tests-lib/go_integration_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
from create_database_utils import *
33
from diagnostics_test_utils import *
44

5-
def go_integration_test(source = "src"):
5+
def go_integration_test(source = "src", db = "db", runFunction = runSuccessfully):
66
# Set up a GOPATH relative to this test's root directory;
77
# we set os.environ instead of using extra_env because we
88
# need it to be set for the call to "go clean -modcache" later
99
goPath = os.path.join(os.path.abspath(os.getcwd()), ".go")
1010
os.environ['GOPATH'] = goPath
1111

1212
try:
13-
run_codeql_database_create([], lang="go", source=source)
13+
run_codeql_database_create([], lang="go", source=source, db=db, runFunction=runFunction)
1414

1515
check_diagnostics()
1616
finally:

0 commit comments

Comments
 (0)