From 8ec644eb5555a82b276a5452ed4c404968d7df13 Mon Sep 17 00:00:00 2001 From: Baghirov Feyruz Date: Mon, 2 Sep 2024 18:57:07 +0200 Subject: [PATCH] removed changed to creation of test package product --- web/tests/functional/store/test_store.py | 6 ++---- web/tests/libtest/codechecker.py | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/web/tests/functional/store/test_store.py b/web/tests/functional/store/test_store.py index 3fc87cdc55..3ea8bbdad1 100644 --- a/web/tests/functional/store/test_store.py +++ b/web/tests/functional/store/test_store.py @@ -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) diff --git a/web/tests/libtest/codechecker.py b/web/tests/libtest/codechecker.py index a10f40e903..846011e05e 100644 --- a/web/tests/libtest/codechecker.py +++ b/web/tests/libtest/codechecker.py @@ -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. @@ -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))