Skip to contentSkip to conversation

xfsqa 166 - fix filter pathname issue

PATCH In review David Chinner 2 participants 2 messages May 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsqa 166 - fix filter pathname issue

If the path to the file being bmap'd has a [0-9] in it, the output filter matches it and we get golden output failure. Be more specific on the match.

---
 xfstests/166 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xfstests/166 +1 -1
Index: xfs-cmds/xfstests/166
===================================================================
@@ -33,7 +33,7 @@ _cleanup()
 _filter_blocks()
 {
 	$AWK_PROG '
-/[0-9]/ {
+/^ +[0-9]/ {
 	if (!written_size) {
 		written_size = $6
 		unwritten1 = ((1048576/512) / 2) - written_size
#1 lore raw
Quoted 3 lines · David Chinner

If the path to the file being bmap'd has a [0-9] in it, the output filter matches it and we get golden output failure. Be more specific on the match.

Looks good.