lib: add subtest start and exit status code messages to debug output

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
Thomas Wood 2015-01-27 14:10:15 +00:00
parent 2b05ecfb06
commit 9942a40437

View File

@ -729,6 +729,7 @@ bool __igt_run_subtest(const char *subtest_name)
} }
kmsg(KERN_INFO "%s: starting subtest %s\n", command_str, subtest_name); kmsg(KERN_INFO "%s: starting subtest %s\n", command_str, subtest_name);
igt_debug("Starting subtest: %s\n", subtest_name);
gettime(&subtest_time); gettime(&subtest_time);
return (in_subtest = subtest_name); return (in_subtest = subtest_name);
@ -972,6 +973,7 @@ void igt_exit(void)
exit(IGT_EXIT_SUCCESS); exit(IGT_EXIT_SUCCESS);
kmsg(KERN_INFO "%s: exiting, ret=%d\n", command_str, igt_exitcode); kmsg(KERN_INFO "%s: exiting, ret=%d\n", command_str, igt_exitcode);
igt_debug("Exiting with status code %d\n", igt_exitcode);
if (!test_with_subtests) if (!test_with_subtests)
exit(igt_exitcode); exit(igt_exitcode);