Skip to contentSkip to conversation

fstests: update _filter_btrfs_version

PATCH In review Eric Sandeen 2 participants 2 messages Mar 24, 2015 – Mar 25, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fstests: update _filter_btrfs_version

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)

---

common/filter.btrfs +1 -1
index c9b3f3a..ea047c5 100644
@@ -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()
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Eric Sandeen

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)

Looks good to me.

Quoted 20 lines

---

common/filter.btrfs +1 -2
index c9b3f3a..ea047c5 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html