Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/3] test/intel/xe_sysfs: Restore sysfs params correctly
@ 2024-11-07 22:52 Jonathan Cavitt
  2024-11-07 22:52 ` [PATCH v5 1/3] lib/igt_sysfs: Add igt_sysfs_get_next_engine Jonathan Cavitt
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Jonathan Cavitt @ 2024-11-07 22:52 UTC (permalink / raw)
  To: igt-dev
  Cc: jonathan.cavitt, saurabhg.gupta, alex.zuo, kamil.konieczny,
	vinay.belgaumkar

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-11-15 16:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-07 22:52 [PATCH v5 0/3] test/intel/xe_sysfs: Restore sysfs params correctly Jonathan Cavitt
2024-11-07 22:52 ` [PATCH v5 1/3] lib/igt_sysfs: Add igt_sysfs_get_next_engine Jonathan Cavitt
2024-11-15 14:36   ` Kamil Konieczny
2024-11-15 16:23     ` Cavitt, Jonathan
2024-11-07 22:52 ` [PATCH v5 2/3] tests/intel/xe_sysfs*: Restore values on test failure Jonathan Cavitt
2024-11-07 22:52 ` [PATCH v5 3/3] tests/intel/xe_sysfs_timeslice_duration: Restore preempt timeout Jonathan Cavitt
2024-11-07 23:14 ` ✗ GitLab.Pipeline: warning for test/intel/xe_sysfs: Restore sysfs params correctly Patchwork
2024-11-07 23:40 ` ✓ CI.xeBAT: success " Patchwork
2024-11-08  0:03 ` ✓ Fi.CI.BAT: " Patchwork
2024-11-08  3:10 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-11-09  6:11 ` ✗ CI.xeFULL: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox