diff mbox

[2/2] btrfs/048: user filter for property error messages

Message ID 6dbf926cd05b145a54044c48c1c2b04ebe6b3e3d.1457028701.git.dsterba@suse.com (mailing list archive)
State New, archived
Headers show

Commit Message

David Sterba March 3, 2016, 6:16 p.m. UTC
Signed-off-by: David Sterba <dsterba@suse.com>
---
 tests/btrfs/048 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Filipe Manana March 4, 2016, 9:31 a.m. UTC | #1
On Thu, Mar 3, 2016 at 6:16 PM, David Sterba <dsterba@suse.com> wrote:
> Signed-off-by: David Sterba <dsterba@suse.com>

Reviewed-by: Filipe Manana <fdmanana@suse.com>

(btw it would be better to cc the btrfs list for btrfs specific
changes to xfstests)

> ---
>  tests/btrfs/048 | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tests/btrfs/048 b/tests/btrfs/048
> index c2cb4a63b095..4a36303632eb 100755
> --- a/tests/btrfs/048
> +++ b/tests/btrfs/048
> @@ -41,6 +41,7 @@ _cleanup()
>  # get standard environment, filters and checks
>  . ./common/rc
>  . ./common/filter
> +. ./common/filter.btrfs
>
>  # real QA test starts here
>  _supported_fs btrfs
> @@ -70,7 +71,8 @@ $BTRFS_UTIL_PROG property set $SCRATCH_MNT label ''
>  $BTRFS_UTIL_PROG property get $SCRATCH_MNT label
>  echo "***"
>  mkdir $SCRATCH_MNT/testdir
> -$BTRFS_UTIL_PROG property get $SCRATCH_MNT/testdir label
> +$BTRFS_UTIL_PROG property get $SCRATCH_MNT/testdir label 2>&1 |
> +       _filter_btrfs_prop_error label
>  echo "***"
>
>  echo -e "\nTesting subvolume ro property"
> --
> 1.8.4.5
>
> --
> 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/tests/btrfs/048 b/tests/btrfs/048
index c2cb4a63b095..4a36303632eb 100755
--- a/tests/btrfs/048
+++ b/tests/btrfs/048
@@ -41,6 +41,7 @@  _cleanup()
 # get standard environment, filters and checks
 . ./common/rc
 . ./common/filter
+. ./common/filter.btrfs
 
 # real QA test starts here
 _supported_fs btrfs
@@ -70,7 +71,8 @@  $BTRFS_UTIL_PROG property set $SCRATCH_MNT label ''
 $BTRFS_UTIL_PROG property get $SCRATCH_MNT label
 echo "***"
 mkdir $SCRATCH_MNT/testdir
-$BTRFS_UTIL_PROG property get $SCRATCH_MNT/testdir label
+$BTRFS_UTIL_PROG property get $SCRATCH_MNT/testdir label 2>&1 |
+	_filter_btrfs_prop_error label
 echo "***"
 
 echo -e "\nTesting subvolume ro property"