Skip to content

Commit

Permalink
Skip version cleanup on deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Apr 1, 2021
1 parent fc2a641 commit d123a1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tribler-gui/tribler_gui/core_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from tribler_gui.utilities import connect, format_size, get_base_path

START_FAKE_API = False
SKIP_VERSION_CLEANUP = os.environ.get("SKIP_VERSION_CLEANUP", "FALSE").lower() == "true"


class CoreManager(QObject):
Expand Down Expand Up @@ -112,7 +113,8 @@ def on_request_error(_):

def should_cleanup_old_versions(self) -> List[TriblerVersion]:
# Skip old version check popup when running fake core, eg. during GUI tests
if START_FAKE_API:
# or during deployment tests since it blocks the tests with a popup dialog
if START_FAKE_API or SKIP_VERSION_CLEANUP:
return []

if self.version_history.last_run_version == self.version_history.code_version:
Expand Down

0 comments on commit d123a1e

Please sign in to comment.