Commit b08f75b9 authored by Michal Wajdeczko's avatar Michal Wajdeczko Committed by Shuah Khan
Browse files

kunit: Fix reporting of the skipped parameterized tests



Logs from the parameterized tests that were skipped don't include
SKIP directive thus they are displayed as PASSED. Fix that.

Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: David Gow <davidgow@google.com>
Reviewed-by: default avatarRae Moar <rmoar@google.com>
Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent d273b728
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -627,9 +627,11 @@ int kunit_run_tests(struct kunit_suite *suite)

				kunit_log(KERN_INFO, &test,
					  KUNIT_SUBTEST_INDENT KUNIT_SUBTEST_INDENT
					  "%s %d %s",
					  "%s %d %s%s%s",
					  kunit_status_to_ok_not_ok(test.status),
					  test.param_index + 1, param_desc);
					  test.param_index + 1, param_desc,
					  test.status == KUNIT_SKIPPED ? " # SKIP " : "",
					  test.status == KUNIT_SKIPPED ? test.status_comment : "");

				/* Get next param. */
				param_desc[0] = '\0';