diff mbox series

btrfs/100, btrfs/101: fix device name in their golden output

Message ID 84afb2bfe9615a98a1ae4de7dfd5fca98771937d.1733851994.git.fdmanana@suse.com (mailing list archive)
State New
Headers show
Series btrfs/100, btrfs/101: fix device name in their golden output | expand

Commit Message

Filipe Manana Dec. 10, 2024, 5:33 p.m. UTC
From: Filipe Manana <fdmanana@suse.com>

After commit 88c0291d297c ("fstests: per-test dmerror instances"), the dm
error device name changed so that it's no longer a plain 'error-test' but
instead it's that plus a prefix matching the test number, such as
'error-test.100' for example. The tests btrfs/100 and btrfs/101 are still
using the plain old name 'error-test' in their golden output, which makes
them fail. So update them to use 'error-test.100' and 'error-test.101'.

Fixes: 88c0291d297c ("fstests: per-test dmerror instances")
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
 tests/btrfs/100.out | 2 +-
 tests/btrfs/101.out | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Qu Wenruo Dec. 17, 2024, 7:53 a.m. UTC | #1
在 2024/12/11 04:03, fdmanana@kernel.org 写道:
> From: Filipe Manana <fdmanana@suse.com>
> 
> After commit 88c0291d297c ("fstests: per-test dmerror instances"), the dm
> error device name changed so that it's no longer a plain 'error-test' but
> instead it's that plus a prefix matching the test number, such as
> 'error-test.100' for example. The tests btrfs/100 and btrfs/101 are still
> using the plain old name 'error-test' in their golden output, which makes
> them fail. So update them to use 'error-test.100' and 'error-test.101'.
> 
> Fixes: 88c0291d297c ("fstests: per-test dmerror instances")
> Signed-off-by: Filipe Manana <fdmanana@suse.com>

Reviewed-by: Qu Wenruo <wqu@suse.com>

Thanks,
Qu

> ---
>   tests/btrfs/100.out | 2 +-
>   tests/btrfs/101.out | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/btrfs/100.out b/tests/btrfs/100.out
> index 1fe3c0de..e0e6cec2 100644
> --- a/tests/btrfs/100.out
> +++ b/tests/btrfs/100.out
> @@ -2,7 +2,7 @@ QA output created by 100
>   Label: none  uuid: <UUID>
>   	Total devices <NUM> FS bytes used <SIZE>
>   	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV
> -	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test
> +	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test.100
>   Label: none  uuid: <UUID>
>   	Total devices <NUM> FS bytes used <SIZE>
>   	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV
> diff --git a/tests/btrfs/101.out b/tests/btrfs/101.out
> index c2359c7c..fbb5faa1 100644
> --- a/tests/btrfs/101.out
> +++ b/tests/btrfs/101.out
> @@ -2,7 +2,7 @@ QA output created by 101
>   Label: none  uuid: <UUID>
>   	Total devices <NUM> FS bytes used <SIZE>
>   	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV
> -	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test
> +	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test.101
>   Label: none  uuid: <UUID>
>   	Total devices <NUM> FS bytes used <SIZE>
>   	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV
diff mbox series

Patch

diff --git a/tests/btrfs/100.out b/tests/btrfs/100.out
index 1fe3c0de..e0e6cec2 100644
--- a/tests/btrfs/100.out
+++ b/tests/btrfs/100.out
@@ -2,7 +2,7 @@  QA output created by 100
 Label: none  uuid: <UUID>
 	Total devices <NUM> FS bytes used <SIZE>
 	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV
-	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test
+	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test.100
 Label: none  uuid: <UUID>
 	Total devices <NUM> FS bytes used <SIZE>
 	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV
diff --git a/tests/btrfs/101.out b/tests/btrfs/101.out
index c2359c7c..fbb5faa1 100644
--- a/tests/btrfs/101.out
+++ b/tests/btrfs/101.out
@@ -2,7 +2,7 @@  QA output created by 101
 Label: none  uuid: <UUID>
 	Total devices <NUM> FS bytes used <SIZE>
 	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV
-	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test
+	devid <DEVID> size <SIZE> used <SIZE> path /dev/mapper/error-test.101
 Label: none  uuid: <UUID>
 	Total devices <NUM> FS bytes used <SIZE>
 	devid <DEVID> size <SIZE> used <SIZE> path SCRATCH_DEV