Merge "Enable and fix image_sanity check"

This commit is contained in:
Zuul 2020-06-10 00:08:44 +00:00 committed by Gerrit Code Review
commit d095b4ca1c
2 changed files with 3 additions and 3 deletions

View File

@ -44,8 +44,8 @@ build_all_images: false
# Vars for running Image sanity
# image_sanity_command var should in following format: <command_name > /tmp/output_file name>
# We need to dump the command output in /var/tmp directory.
image_sanity: false
image_sanity_command: "rpm -qa > /var/tmp/rpm_qa.txt;rpm -Va > /var/tmp/rpm_va.txt"
image_sanity: true
image_sanity_command: "rpm -qa > /var/tmp/rpm_qa.txt; rpm -Va | grep missing > /var/tmp/rpm_va.txt"
image_sanity_files:
- /var/tmp/rpm_qa.txt
- /var/tmp/rpm_va.txt

View File

@ -33,7 +33,7 @@
- name: Look for missing directories
shell: |
grep {{ item }} rpm_va.txt
! grep {{ item }} rpm_va.txt
args:
chdir: "{{ workspace }}"
register: files_missing