Skip to contentSkip to conversation

lib/tst_test.c: log testing fstyp when iterating all_filesystems

PATCH New Xiong Zhou 2 participants 2 messages Mar 24, 2018 – Mar 26, 2018 Library code

lore
Share & tools
lore

Xiong Zhou

author
#0 lore raw

PATCH 1/1 lib/tst_test.c: log testing fstyp when iterating all_filesystems

It's more clear that which test is going on and saving debug time if anything goes wrong.

---
 lib/tst_test.c | 2 ++
 1 file changed, 2 insertions(+)
lib/tst_test.c +2 -0
index b5fce33..8be1332 100644
@@ -1044,6 +1044,8 @@ static int run_tcases_per_fs(void)
 		tst_brk(TCONF, "There are no supported filesystems");
 
 	for (i = 0; filesystems[i]; i++) {
+
+		tst_res(TINFO, "Testing on %s", filesystems[i]);
 		tdev.fs_type = filesystems[i];
 
 		prepare_device();
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 lib/tst_test.c: log testing fstyp when iterating all_filesystems

Hi!

Quoted 2 lines

It's more clear that which test is going on and saving debug time if anything goes wrong.

We kind of print this information, since tst_mkfs prints which FS we are formatting the device with, but I guess that if we crash before that we will never see it...

I've reworded the patch description a bit and pushed, thanks.

Signature · 2 lines
Cyril Hrubis
[email protected]