lib/drmtest: add igt_subtest_name and use it in kms_flip

Useful when the testname is constructed with igt_subtest_f.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-08-14 18:03:09 +02:00
parent b3880d3a96
commit 15c19229f4
3 changed files with 13 additions and 15 deletions
+5
View File
@@ -739,6 +739,11 @@ bool __igt_run_subtest(const char *subtest_name)
}
}
const char *igt_subtest_name(void)
{
return in_subtest;
}
bool igt_only_list_subtests(void)
{
return list_subtests;