* [PATCH] fstests: btrfs/213: fix the _not_run spell
@ 2023-08-24 6:48 Qu Wenruo
2023-08-24 7:40 ` Filipe Manana
0 siblings, 1 reply; 2+ messages in thread
From: Qu Wenruo @ 2023-08-24 6:48 UTC (permalink / raw)
To: linux-btrfs, fstests
The proper function is _notrun, not _not_run.
This can cause false alerts if the write speed is too fast or has some
cache causing the balance to finish eariler than expectation.
Signed-off-by: Qu Wenruo <wqu@suse.com>
---
tests/btrfs/213 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/btrfs/213 b/tests/btrfs/213
index 5666d9b9..6def4f6e 100755
--- a/tests/btrfs/213
+++ b/tests/btrfs/213
@@ -55,7 +55,7 @@ sleep $(($runtime / 4))
# any error about no balance currently running.
$BTRFS_UTIL_PROG balance cancel "$SCRATCH_MNT" 2>&1 | grep -iq 'not in progress'
if [ $? -eq 0 ]; then
- _not_run "balance finished before we could cancel it"
+ _notrun "balance finished before we could cancel it"
fi
# Now check if we can finish relocating metadata, which should finish very
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fstests: btrfs/213: fix the _not_run spell
2023-08-24 6:48 [PATCH] fstests: btrfs/213: fix the _not_run spell Qu Wenruo
@ 2023-08-24 7:40 ` Filipe Manana
0 siblings, 0 replies; 2+ messages in thread
From: Filipe Manana @ 2023-08-24 7:40 UTC (permalink / raw)
To: Qu Wenruo; +Cc: linux-btrfs, fstests
On Thu, Aug 24, 2023 at 02:48:20PM +0800, Qu Wenruo wrote:
> The proper function is _notrun, not _not_run.
>
> This can cause false alerts if the write speed is too fast or has some
> cache causing the balance to finish eariler than expectation.
https://lore.kernel.org/fstests/71413edbeb1ee5b945f0b82faccaf4a75e8ba56b.1691924176.git.fdmanana@suse.com/
>
> Signed-off-by: Qu Wenruo <wqu@suse.com>
> ---
> tests/btrfs/213 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/btrfs/213 b/tests/btrfs/213
> index 5666d9b9..6def4f6e 100755
> --- a/tests/btrfs/213
> +++ b/tests/btrfs/213
> @@ -55,7 +55,7 @@ sleep $(($runtime / 4))
> # any error about no balance currently running.
> $BTRFS_UTIL_PROG balance cancel "$SCRATCH_MNT" 2>&1 | grep -iq 'not in progress'
> if [ $? -eq 0 ]; then
> - _not_run "balance finished before we could cancel it"
> + _notrun "balance finished before we could cancel it"
> fi
>
> # Now check if we can finish relocating metadata, which should finish very
> --
> 2.41.0
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-24 7:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-24 6:48 [PATCH] fstests: btrfs/213: fix the _not_run spell Qu Wenruo
2023-08-24 7:40 ` Filipe Manana
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox