From 571a6cc62ae129ecd1749f8fa223c86b7defdead Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: May 22 2013 10:51:28 +0000 Subject: Fix file symlink test --- diff --git a/tests/p_file/03_file_mime_symlink.sh b/tests/p_file/03_file_mime_symlink.sh index bf8badd..442334d 100755 --- a/tests/p_file/03_file_mime_symlink.sh +++ b/tests/p_file/03_file_mime_symlink.sh @@ -4,12 +4,16 @@ t_Log "Running $0 - checking if file can recognize symlink mime file type " +TEST_FILE_PATH="/tmp/p_file_link_test" + +ln -s /etc/hosts $TEST_FILE_PATH + if (t_GetPkgRel basesystem | grep -q el5) then - file -i /etc/grub.conf | grep -q 'x-not-regular-file' + file -i $TEST_FILE_PATH | grep -q 'x-not-regular-file' ret_val=$? else - file -i /etc/grub.conf | grep -q 'application/x-symlink' + file -i $TEST_FILE_PATH | grep -q 'application/x-symlink' ret_val=$? fi