[igt-dev] [PATCH i-g-t 13/20] tests/i915/perf: Move test_sysctl_defaults after the fixture

Ashutosh Dixit ashutosh.dixit at intel.com
Tue Aug 8 01:00:10 UTC 2023


test_sysctl_defaults requires sysctl paths to be set which is done in the
fixture.

Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
 tests/i915/perf.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index e0afbbc45ea2..78e68462ad06 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -5955,9 +5955,6 @@ igt_main
 	igt_subtest("i915-ref-count")
 		test_i915_ref_count();
 
-	igt_subtest("sysctl-defaults")
-		test_sysctl_defaults();
-
 	igt_fixture {
 		/* We expect that the ref count test before these fixtures
 		 * should have closed drm_fd...
@@ -5996,6 +5993,9 @@ igt_main
 			render_copy = igt_get_render_copyfunc(devid);
 	}
 
+	igt_subtest("sysctl-defaults")
+		test_sysctl_defaults();
+
 	igt_subtest("non-system-wide-paranoid")
 		test_system_wide_paranoid();
 
-- 
2.41.0



More information about the igt-dev mailing list