From 20f7b597c7d4c34a8ea2e7325850eca7fe701769 Mon Sep 17 00:00:00 2001 From: Rene Diepstraten Date: Dec 28 2013 22:04:31 +0000 Subject: el7 has syslinux-splash in other location --- diff --git a/tests/p_file/02_file_mime_image.sh b/tests/p_file/02_file_mime_image.sh index 4bd69b6..57b19c3 100755 --- a/tests/p_file/02_file_mime_image.sh +++ b/tests/p_file/02_file_mime_image.sh @@ -1,10 +1,19 @@ #!/bin/bash # Author: ??? # Christoph Galuschka +# Rene Diepstraten t_Log "Running $0 - checking if file can recognize image mime file type " -file /usr/lib/anaconda-runtime/boot/syslinux-splash.png -i | grep -q 'image/png' +case $centos_ver in + 5|6) + pngfile=/usr/lib/anaconda-runtime/boot/syslinux-splash.png + ;; + *) + pngfile=/usr/share/anaconda/boot/syslinux-splash.png + ;; +esac -t_CheckExitStatus $? +file $pngfile -i | grep -q 'image/png' +t_CheckExitStatus $? \ No newline at end of file