diff --git a/tests/generic/386 b/tests/generic/386 index 0c44c80e..1291dae0 100755 --- a/tests/generic/386 +++ b/tests/generic/386 @@ -58,12 +58,12 @@ _require_scratch # Make sure the hard limits reported are what was set. # It is entirely too clever... # It exploits the fact that we've set the soft and hard limits to -# the same value, and as a result the value in the fourth field in +# the same value, and as a result the value in the second field in # both the "df" and the "report" output. For "report", the line we're # interested in contains our project name in the first field. For "df" # it contains our project directory in the last field. # But if the device name is too long, the "df" output is broke into two -# lines, the fourth field is not correct, so take $(NF-2) of "df" +# lines, the second field is not correct, so take $(NF-4) of "df" _filter_quota_rpt() { awk ' BEGIN { @@ -89,7 +89,7 @@ _filter_quota_rpt() { bsize = byte_size($4); } else if ($NF ~ proj_dir) { # this is the "df" output - bsize = byte_size($(NF-2)); + bsize = byte_size($NF-4)); } else { next; }