Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit d584182

Browse files
committed
Raise exp with new test when fail_on_new_test is True
1 parent fe6721e commit d584182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eyes_core/applitools/core/eyes_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def close(self, raise_ex=True):
339339
if results.is_new:
340340
instructions = "Please approve the new baseline at " + results_url
341341
logger.info("--- New test ended. " + instructions)
342-
if raise_ex:
342+
if raise_ex or self.configuration.fail_on_new_test:
343343
message = "'%s' of '%s'. %s" % (
344344
self._session_start_info.scenario_id_or_name,
345345
self._session_start_info.app_id_or_name,

0 commit comments

Comments
 (0)