Whamcloud - gitweb
LU-9663 tests: replace “ls -s” with “stat -c '%s'” to get file size
[fs/lustre-release.git] / lustre / tests / acl / run
index 6a86c22..ffffd5a 100755 (executable)
@@ -42,7 +42,7 @@ if (!defined($ARGV[0])) {
 open($testfile, $ARGV[0]) or die "Can't open file $ARGV[0]: $!";
 for (;;) {
   my $line = <$testfile>; $line_number++;
-  if (defined $line) {
+  if (defined $line && $line !~ /\%s/) {
     # Substitute %VAR and %{VAR} with environment variables.
     $line =~ s[%(?:(\w+)|\{(\w+)\})][$ENV{"$1$2"}]eg;
   }