[PATCH v5 0/3] test/intel/xe_sysfs: Restore sysfs params correctly
Jonathan Cavitt
jonathan.cavitt at intel.com
Thu Nov 7 22:52:51 UTC 2024
The xe_sysfs_timeslice_duration and xe_sysfs_preempt_timeout tests do
not correctly restore modified sysfs params on test failure.
Additionally, xe_sysfs_timeslice_duration modifies but does not restore
preempt_timeout_us. Repair these issues.
v3: Fix several formatting issues (Kamil)
v4: Do not compare possibly unassigned variable (Kamil)
Whitespace and commit name fixes (Kamil)
v5: Add new helper funciton, igt_sysfs_get_next_engine
Fix igt_sysfs_scanf/printf usage in tests (Kamil)
Jonathan Cavitt (3):
lib/igt_sysfs: Add igt_sysfs_get_next_engine
tests/intel/xe_sysfs*: Restore values on test failure
tests/intel/xe_sysfs_timeslice_duration: Restore preempt timeout
lib/igt_sysfs.c | 36 +++++++++++
lib/igt_sysfs.h | 1 +
tests/intel/xe_sysfs_preempt_timeout.c | 55 +++++++++++++----
tests/intel/xe_sysfs_timeslice_duration.c | 73 +++++++++++++++++++----
4 files changed, 145 insertions(+), 20 deletions(-)
--
2.43.0
More information about the igt-dev
mailing list