Whamcloud - gitweb
LU-3787 test: Missing "$" on variable 03/7403/2
authorJames Nunez <james.a.nunez@intel.com>
Tue, 20 Aug 2013 21:21:49 +0000 (15:21 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Sep 2013 05:53:44 +0000 (05:53 +0000)
In test 90 of replay-single, the argument of
getstripe is $dir/file when it really should be
$dir/$file. Getstripe fails since "file" does
not exist.

The patch adds the "$" to the argument of getstripe.

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I253c358d2912b57b54024f02a0a1ca54094369a7
Reviewed-on: http://review.whamcloud.com/7403
Tested-by: Hudson
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/replay-single.sh

index acb02d8..4e7e301 100755 (executable)
@@ -2744,8 +2744,8 @@ test_90() { # bug 19494
         local uuid=$(ostuuid_from_index $i)
         for file in f$i all; do
             if [[ $dir/$file != $($LFS find --obd $uuid --name $file $dir) ]]; then
-                $GETSTRIPE $dir/file
-                error wrong stripe: $file, uuid: $uuid
+               $GETSTRIPE $dir/$file
+               error wrong stripe: $file, uuid: $uuid
             fi
         done
     done