diff mbox series

[1/2] fs_fill: Add max_runtime = 60

Message ID 20221206115329.17760-1-rpalethorpe@suse.com
State Accepted
Headers show
Series [1/2] fs_fill: Add max_runtime = 60 | expand

Commit Message

Richard Palethorpe Dec. 6, 2022, 11:53 a.m. UTC
Usually it takes a few seconds (3-6) to fill up the device with
default settings. Which is too close to the default runtime.

This sets the max_runtime to 10x that to avoid random failures caused
by rare events.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Cc: Petr Cervinka <pcervinka@suse.com>
---
 testcases/kernel/fs/fs_fill/fs_fill.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Petr Vorel Dec. 6, 2022, 3:33 p.m. UTC | #1
Hi Richie,

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr
Li Wang Dec. 8, 2022, 2:39 a.m. UTC | #2
Merged this 1/2, thanks!
diff mbox series

Patch

diff --git a/testcases/kernel/fs/fs_fill/fs_fill.c b/testcases/kernel/fs/fs_fill/fs_fill.c
index 66b3974fc..95dfc2cb6 100644
--- a/testcases/kernel/fs/fs_fill/fs_fill.c
+++ b/testcases/kernel/fs/fs_fill/fs_fill.c
@@ -109,6 +109,7 @@  static void cleanup(void)
 }
 
 static struct tst_test test = {
+	.max_runtime = 60,
 	.needs_root = 1,
 	.mount_device = 1,
 	.mntpoint = MNTPOINT,