Skip to content

Commit

Permalink
Check VMTools is installed when skip the test case
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
keirazhang committed Apr 8, 2024
1 parent 0b51da5 commit caee6e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions linux/open_vm_tools/pre_ovt_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
update_vmtools: true
when: update_vmtools is undefined

# VM has open-vm-tools installed and update_vmtools is set false
- name: "Skip test case because update_vmtools is false"
- name: "Skip test case because VM has open-vm-tools installed and update_vmtools is false"
include_tasks: ../../common/skip_test_case.yml
vars:
skip_msg: "Test case '{{ ansible_play_name }}' is skipped because update_vmtools is set to: {{ update_vmtools }}"
skip_msg: "Test case '{{ ansible_play_name }}' is skipped because VM has open-vm-tools and update_vmtools is set to: {{ update_vmtools }}"
skip_reason: "Skipped"
when: not update_vmtools | bool
when:
- vmtools_is_installed
- not update_vmtools

- name: "Test setup"
include_tasks: ../setup/test_setup.yml
Expand Down

0 comments on commit caee6e7

Please sign in to comment.