Skip to contentSkip to conversation

lib/tst_test: print INFO msg for test variants

PATCH New Murphy Zhou 2 participants 2 messages May 30, 2019 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/tst_test: print INFO msg for test variants

Make the test output clearer about what's going on when we run multiple variants.

---
 lib/tst_test.c | 1 +
 1 file changed, 1 insertion(+)
lib/tst_test.c +1 -0
index 2d88adbd7..fec6c9aba 100644
@@ -1201,6 +1201,7 @@ void tst_run_tcases(int argc, char *argv[], struct tst_test *self)
 		test_variants = tst_test->test_variants;
 
 	for (tst_variant = 0; tst_variant < test_variants; tst_variant++) {
+		tst_res(TINFO, "Running tst_variant %d\n", tst_variant);
 		if (tst_test->all_filesystems)
 			ret |= run_tcases_per_fs();
 		else
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 lib/tst_test: print INFO msg for test variants

Hi!

Quoted 2 lines

Make the test output clearer about what's going on when we run multiple variants.

Actually the test itself is supposed to print which variant it's about the test. Printing the variant number does not help much.

Signature · 2 lines
Cyril Hrubis
[email protected]