[igt-dev] [PATCH i-g-t] tests/debugfs_test:Added igt_require check for sysfs and debugfs
Arjun Melkaveri
arjun.melkaveri at intel.com
Thu Sep 17 09:26:20 UTC 2020
Added igt_require check for sysfs and debugfs for subtests
using this path.Test would skip instead of failing.
Signed-off-by: Arjun Melkaveri <arjun.melkaveri at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
tests/debugfs_test.c | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/tests/debugfs_test.c b/tests/debugfs_test.c
index f6cf1fa0..74e14f35 100644
--- a/tests/debugfs_test.c
+++ b/tests/debugfs_test.c
@@ -162,13 +162,26 @@ igt_main
kmstest_set_vt_graphics_mode();
}
- igt_subtest("sysfs")
- read_and_discard_sysfs_entries(sysfs, 0);
- igt_subtest("read_all_entries")
- read_and_discard_sysfs_entries(debugfs, 0);
+ igt_subtest_group {
+ igt_fixture {
+ igt_require(sysfs >= 0);
+ }
+
+ igt_subtest("sysfs")
+ read_and_discard_sysfs_entries(sysfs, 0);
+ }
- igt_subtest_group
- kms_tests(fd, debugfs);
+ igt_subtest_group {
+ igt_fixture {
+ igt_require(debugfs >= 0);
+ }
+
+ igt_subtest("read_all_entries")
+ read_and_discard_sysfs_entries(debugfs, 0);
+
+ igt_subtest_group
+ kms_tests(fd, debugfs);
+ }
igt_fixture {
close(sysfs);
--
2.25.1
More information about the igt-dev
mailing list