generic/095: fix duplicate variable name
authorZorro Lang <zlang@redhat.com>
Thu, 23 Feb 2017 03:08:21 +0000 (11:08 +0800)
committerEryu Guan <eguan@redhat.com>
Thu, 23 Feb 2017 07:08:04 +0000 (15:08 +0800)
I think this definitely isn't what we want:
  local warn4="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_aio_read.*"
  local warn4="WARNING:.*fs/iomap\.c:.*iomap_dio_rw.*"

The second warn4 will override the first one. So change the second
to warn5.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/095

index 991baefaecdfae149ec2caf66c599d8d31f1a1ad..d837564f79ab0d3f0f0a75a20c1fea650d28f616 100755 (executable)
@@ -128,12 +128,12 @@ filter_xfs_dmesg()
        local warn2="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_dio_aio_read.*"
        local warn3="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_read_iter.*"
        local warn4="WARNING:.*fs/xfs/xfs_file\.c:.*xfs_file_aio_read.*"
-       local warn4="WARNING:.*fs/iomap\.c:.*iomap_dio_rw.*"
+       local warn5="WARNING:.*fs/iomap\.c:.*iomap_dio_rw.*"
        sed -e "s#$warn1#Intentional warnings in xfs_file_dio_aio_write#" \
            -e "s#$warn2#Intentional warnings in xfs_file_dio_aio_read#" \
            -e "s#$warn3#Intentional warnings in xfs_file_read_iter#" \
            -e "s#$warn4#Intentional warnings in xfs_file_aio_read#" \
-           -e "s#$warn4#Intentional warnings in iomap_dio_rw#"
+           -e "s#$warn5#Intentional warnings in iomap_dio_rw#"
 }
 
 # umount before checking dmesg in case umount triggers any WARNING or Oops