Hi All,
the attached patch solved a problem when LTP is used
on a tiny system based on busybox where the 'df' command
is just a symlink to busysobx.
In this context it doesn't support the -P option neither
accept a directory name passed on his command line.
It can be applied over ltp 20071031 as well (not tested on snapshot)
Regards,
Carmelo
Make the test working on busybox system, where 'df' command
doesn't support -P option, neither accept a directory as input
Signed-off-by: Carmelo Amoroso <[EMAIL PROTECTED]>
--- ltp-full-20070731-orig/testcases/kernel/fs/doio/rwtest.sh 2007-08-14
13:42:22.971273000 +0200
+++ ltp-full-20070731/testcases/kernel/fs/doio/rwtest.sh 2007-08-14
13:46:37.232457000 +0200
@@ -319,6 +319,10 @@ do
then
blks=${szblks[$n]}
else
+ # If df is a symlink (to busybox) then do not pass the
$dir and $dfOpts
+ # parameters because they don't work as expected
+ [ -h $(which df) ] && dir=""; dfOpts=""
+
blks=$(df $dfOpts $dir |
(while read fs blks used avail cap mountpoint
do
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list