| To: | Rich Johnston <rjohnston@xxxxxxx>, Dave Chinner <dchinner@xxxxxxxxxx>, xfstests <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] xfstests: fix the regex pattern in get_group_list of check |
| From: | Wang Sheng-Hui <shhuiw@xxxxxxxxx> |
| Date: | Fri, 12 Apr 2013 14:12:35 +0800 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=CLtJqaa3VFSf1IpZI2aP9Amm5fX/hQzx+Y+ozZAhBXE=; b=mGJ8rz6MGF+YNzjlQ7fCfpf3VP+AnFSuUlmaIdCO+n133552CswYVgte/A7QEBssDX IHxEiBTB7oQd9RL7uG7Vn2mFppe7uMzO0nFyvxSTw7tdp3LDCst5SlrmzlV4YSHR1DRM 9JHA5rkvY7DTED+NvbqVXrBpexVZrH9d8kMApbwvz7RLGQqE7Cp5Z4LWa+r0ikEDVGl5 qG091qJb5RzsWOemYc1CfKRcVTuL2KZLPYj5c7Nb3rtSHyAabm0Hb/ObVDYOsg9CKB2a UmN7AVPLD0ntyRq+8Vbf0TFnztMWGsP9RkGHkXKe6ePXDY6U6NtLsUtvfb1qkf3h9gU5 RUGg== |
| User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
In group files, non comment line starts with a 3-digits, then followed by
space and other characters, but no group names.
The old regex in get_group_list uses the group name as part of the regex,
and fails './check -g xfs' run:
Group "xfs" is empty or not defined?
The patch removes the pattern for group name, and thus we can trigger tests
like "./check -g xfs" as normal.
Signed-off-by: Wang Sheng-Hui <shhuiw@xxxxxxxxx>
---
check | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/check b/check
index 966fbe5..abc65cb 100755
--- a/check
+++ b/check
@@ -100,7 +100,7 @@ get_group_list()
l=$(sed -n < $SRC_DIR/$d/group \
-e 's/#.*//' \
-e 's/$/ /' \
- -e "s;\(^[0-9][0-9][0-9]\).* $grp .*;$SRC_DIR/$d/\1;p")
+ -e "s;\(^[0-9][0-9][0-9]\) .*;$SRC_DIR/$d/\1;p")
grpl="$grpl $l"
done
echo $grpl
--
1.7.12.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: need help how to debug xfs crash issue xfs_iunlink_remove: xfs_inotobp() returned error 22, 符永涛 |
|---|---|
| Next by Date: | Re: need help how to debug xfs crash issue xfs_iunlink_remove: xfs_inotobp() returned error 22, 符永涛 |
| Previous by Thread: | [PATCH v2] xfstests: make install support common/ and tests/ dirs, Wang Sheng-Hui |
| Next by Thread: | Re: [PATCH] xfstests: fix the regex pattern in get_group_list of check, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |