Skip to content

Commit

Permalink
Limit screenshot text extraction only at deploy_vm failure (#566)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <qi-keira.zhang@broadcom.com>
  • Loading branch information
keirazhang authored Apr 1, 2024
1 parent bdb8232 commit 70c304e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/test_rescue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

- name: "Extract text from VM screenshot at failed test case {{ current_testcase_name }}"
when:
- extract_screenshot_text | default(false)
- tesseract_is_installed
- vm_screenshot_local_path
block:
Expand Down
1 change: 1 addition & 0 deletions linux/deploy_vm/deploy_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
- name: "Test case failure"
include_tasks: ../../common/test_rescue.yml
vars:
extract_screenshot_text: true
exit_testing_when_fail: true
always:
- name: "Collect VM deployment logs"
Expand Down
2 changes: 2 additions & 0 deletions linux/secureboot_enable_disable/secureboot_enable_disable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,5 @@

- name: "Test case failure"
include_tasks: ../../common/test_rescue.yml
vars:
extract_screenshot_text: true
1 change: 1 addition & 0 deletions windows/deploy_vm/deploy_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- name: "Test case failure"
include_tasks: ../../common/test_rescue.yml
vars:
extract_screenshot_text: true
exit_testing_when_fail: true
always:
- name: "Remove NFS mount point"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
- name: "Execute tasks when test failed"
include_tasks: ../../common/test_rescue.yml
vars:
extract_screenshot_text: true
exit_testing_when_fail: true
always:
- name: "Get upgrade setuperr.log file"
Expand Down

0 comments on commit 70c304e

Please sign in to comment.