From d7bd9fb871d02c5bc741d8ef4401161f3a736365 Mon Sep 17 00:00:00 2001 From: Alex Iribarren Date: Jul 23 2020 09:59:40 +0000 Subject: Look for any png file --- diff --git a/tests/p_file/02_file_mime_image.sh b/tests/p_file/02_file_mime_image.sh index 57b19c3..3a2f37d 100755 --- a/tests/p_file/02_file_mime_image.sh +++ b/tests/p_file/02_file_mime_image.sh @@ -5,15 +5,8 @@ t_Log "Running $0 - checking if file can recognize image mime file type " -case $centos_ver in - 5|6) - pngfile=/usr/lib/anaconda-runtime/boot/syslinux-splash.png - ;; - *) - pngfile=/usr/share/anaconda/boot/syslinux-splash.png - ;; -esac +pngfile="$(find /usr/share/ -name '*.png' -print -quit)" file $pngfile -i | grep -q 'image/png' -t_CheckExitStatus $? \ No newline at end of file +t_CheckExitStatus $?