From 0134d406b240392d56a84eb6d7b3b98786a973d5 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Jul 25 2020 06:12:48 +0000 Subject: Merge pull request #60 from alexiri/c8 Look for any png file --> Looks good to me. Thanks! --- 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 $?