diff --git a/tests/p_file/02_file_mime_image.sh b/tests/p_file/02_file_mime_image.sh index 3a2f37d..0d0c65c 100755 --- a/tests/p_file/02_file_mime_image.sh +++ b/tests/p_file/02_file_mime_image.sh @@ -7,6 +7,11 @@ t_Log "Running $0 - checking if file can recognize image mime file type " pngfile="$(find /usr/share/ -name '*.png' -print -quit)" +if [ -z "$pngfile" ];then + t_Log "No png file found => SKIP" + exit 0 +fi + file $pngfile -i | grep -q 'image/png' t_CheckExitStatus $?