diff mbox

fstests: update _filter_btrfs_version

Message ID 5511D94C.9090109@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Sandeen March 24, 2015, 9:38 p.m. UTC
The btrfs cmd now sometimes emits "btrfs-progs" not "Btrfs-progs"
as it used to, so update the filter accordingly.

(This fixes a failure on btrfs/006 w/ btrfs-progs v3.19)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---


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

Comments

Eryu Guan March 25, 2015, 3:14 a.m. UTC | #1
On Tue, Mar 24, 2015 at 04:38:20PM -0500, Eric Sandeen wrote:
> The btrfs cmd now sometimes emits "btrfs-progs" not "Btrfs-progs"
> as it used to, so update the filter accordingly.
> 
> (This fixes a failure on btrfs/006 w/ btrfs-progs v3.19)
> 
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>

Looks good to me.

Reviewed-by: Eryu Guan <eguan@redhat.com>

> ---
> 
> diff --git a/common/filter.btrfs b/common/filter.btrfs
> index c9b3f3a..ea047c5 100644
> --- a/common/filter.btrfs
> +++ b/common/filter.btrfs
> @@ -5,7 +5,7 @@
>  # Some, but not all, commands emit "Btrfs <version>"
>  _filter_btrfs_version()
>  {
> -	sed -e "s/^Btrfs.*//g"
> +	sed -e "s/^[Bb]trfs.*//g"
>  }
>  
>  _filter_devid()
> 
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/common/filter.btrfs b/common/filter.btrfs
index c9b3f3a..ea047c5 100644
--- a/common/filter.btrfs
+++ b/common/filter.btrfs
@@ -5,7 +5,7 @@ 
 # Some, but not all, commands emit "Btrfs <version>"
 _filter_btrfs_version()
 {
-	sed -e "s/^Btrfs.*//g"
+	sed -e "s/^[Bb]trfs.*//g"
 }
 
 _filter_devid()