Skip to content

Commit

Permalink
removed changed to creation of test package product
Browse files Browse the repository at this point in the history
  • Loading branch information
feyruzb committed Sep 2, 2024
1 parent e25167e commit 8ec644e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions web/tests/functional/store/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ def setup_class(self):

server_access['viewer_product'] = 'store_limited_product'
codechecker.add_test_package_product(server_access, TEST_WORKSPACE,
report_limit=2,
database_name='store_product_db')
report_limit=2)

server_access['viewer_product'] = 'store_test'
codechecker.add_test_package_product(server_access, TEST_WORKSPACE,
database_name='store_test')
codechecker.add_test_package_product(server_access, TEST_WORKSPACE)

# Extend the checker configuration with the server access.
codechecker_cfg.update(server_access)
Expand Down
5 changes: 2 additions & 3 deletions web/tests/libtest/codechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,7 @@ def start_server_proc(event, server_cmd, checking_env):

def add_test_package_product(server_data, test_folder, check_env=None,
protocol='http', report_limit=None,
user_permissions=None,
database_name="data.sqlite"):
user_permissions=None):
"""
Add a product for a test suite to the server provided by server_data.
Server must be running before called.
Expand Down Expand Up @@ -782,7 +781,7 @@ def add_test_package_product(server_data, test_folder, check_env=None,
else:
# SQLite databases are put under the workspace of the appropriate test.
add_command += ['--sqlite',
os.path.join(test_folder, database_name)]
os.path.join(test_folder, 'data.sqlite')]

print(' '.join(add_command))

Expand Down

0 comments on commit 8ec644e

Please sign in to comment.