diff --git a/ui/webui/test/helpers/permian.py b/ui/webui/test/helpers/permian.py index 601bc7ad777..13932e42d7d 100644 --- a/ui/webui/test/helpers/permian.py +++ b/ui/webui/test/helpers/permian.py @@ -49,6 +49,7 @@ def setUp(self): self.logs_dir = os.path.join('./test_logs', self.__class__.__name__) if not os.path.isdir(self.logs_dir): os.makedirs(self.logs_dir) + os.environ["PERMIAN"] = True def __add_public_key(self): with open(self.machine.identity_file + '.pub', 'r') as pub: diff --git a/ui/webui/test/helpers/step_logger.py b/ui/webui/test/helpers/step_logger.py index 114a21650c6..4c66589a935 100644 --- a/ui/webui/test/helpers/step_logger.py +++ b/ui/webui/test/helpers/step_logger.py @@ -1,3 +1,4 @@ +import os class BrowserSnapshot(): SNAPSHOT_NUMBER = 0 @@ -23,6 +24,8 @@ def log_step(snapshots=False, snapshot_before=False, snapshot_after=False, docst :type docstring: bool, optional """ def decorator(function): + if not os.environ.get('PERMIAN', False): + return function def wrapper(*args, **kwargs): nice_args = ', '.join(str(a) for a in args[1:])