From: Zorro Lang Date: Thu, 23 Feb 2017 03:08:21 +0000 (+0800) Subject: generic/095: fix duplicate variable name X-Git-Tag: v2022.05.01~2162 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=46a1e87e51f17309ba373987fc70e031ce2abf4a;p=xfstests-dev.git generic/095: fix duplicate variable name 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 Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/tests/generic/095 b/tests/generic/095 index 991baefa..d837564f 100755 --- a/tests/generic/095 +++ b/tests/generic/095 @@ -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