Skip to contentSkip to conversation

generic/095: fix duplicate variable name

PATCH In review Zorro Lang 2 participants 2 messages Feb 23, 2017

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 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 overlay the first one. So change the second to warn5.

---
 tests/generic/095 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/generic/095 +2 -2
index 991baef..d837564 100755
@@ -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
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Zorro Lang

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 overlay the first one. So change the second to warn5.

--D

Quoted 30 lines
---
 tests/generic/095 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/generic/095 +2 -2
index 991baef..d837564 100755
@@ -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
Signature · 6 lines
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html