From: Veerendra C. <vec...@in...> - 2008-07-30 07:16:13
|
Hi This patch fixes the fs_inod script. On error-condition it was not setting up proper error values and used to throw up error. Also, it was referring to a non-existent function 'error()' . Now it returns 0 on Success or non-zero value on Failure . I have verified this script on ReadWrite dir and ReadOnly-dir where the tests fail. Results : On running ReadOnly dir . Before modifying the script: <snip> /root/old/ltp-full-20080630/testcases/kernel/fs/fs_inod/fs_inod: rm files [0-1]/file1[0-1] /root/old/ltp-full-20080630/testcases/kernel/fs/fs_inod/fs_inod: line 246: error: command not found Execution completed Wed Jul 30 11:57:36 IST 2008 </snip> e325a:/tmp/fs25444/RO # echo $? 0 After modifying the script. <snip> /root/ltp-full-20080630/testcases/bin/fs_inod: line 197: cd: ../dir2: No such file or directory /root/ltp-full-20080630/testcases/bin/fs_inod: rm files [0-1]/file1[0-1] step1 failed - see above errors Execution completed Wed Jul 30 12:26:58 IST 2008 </snip> e325a:/tmp/fs25444/RO # echo $? 1 SignedOff: Veerendra C <vec...@in...> Regards, Veerendra C ________________________________________________________ Linux Technology Center, India Software Labs, Bangalore, Ph: 080-4177 6428 (See attached file: fs_inod.patch) |