Skip to content

Commit

Permalink
Merge pull request #3300 from csordasmarton/fix_test_rm_workspace
Browse files Browse the repository at this point in the history
[web][test] Ignore errors when removing workspace directories
  • Loading branch information
csordasmarton authored May 5, 2021
2 parents 69f148a + b135d49 commit cc64e48
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion web/tests/functional/cli_config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/cmdline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/component/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/cppcheck/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/db_cleanup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ def teardown_package():
global TEST_WORKSPACE

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/delete_runs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/detection_status/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/diff_local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ def teardown_package():
global TEST_WORKSPACE

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/diff_local_remote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/diff_remote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/export_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/extended_report_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
# shutil.rmtree(TEST_WORKSPACE)
# shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/func_template/template__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/instance_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ def teardown_package():
global TEST_WORKSPACE

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/products/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/report_viewer_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/review_status/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/run_tag/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/server_configuration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/skip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)


def _generate_skip_list_file(skip_list_file):
Expand Down
2 changes: 1 addition & 1 deletion web/tests/functional/source_change/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/statistics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ def teardown_package():
global TEST_WORKSPACE

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/store/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)
2 changes: 1 addition & 1 deletion web/tests/functional/suppress/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)


def _generate_suppress_file(suppress_file):
Expand Down
2 changes: 1 addition & 1 deletion web/tests/functional/update/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def teardown_package():
codechecker.remove_test_package_product(TEST_WORKSPACE, check_env)

print("Removing: " + TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE)
shutil.rmtree(TEST_WORKSPACE, ignore_errors=True)

0 comments on commit cc64e48

Please sign in to comment.