Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests/cgroup: Fix cpuset test portability and hotplug error handling
@ 2026-08-09  8:21 Rui Qi
  2026-08-09  8:21 ` [PATCH 1/2] selftests/cgroup: Avoid awk -e in cpuset tests Rui Qi
  2026-08-09  8:21 ` [PATCH 2/2] selftests/cgroup: Preserve CPU hotplug write errors Rui Qi
  0 siblings, 2 replies; 7+ messages in thread
From: Rui Qi @ 2026-08-09  8:21 UTC (permalink / raw)
  To: Tejun Heo
  Cc: Waiman Long, Ridong Chen, Johannes Weiner, Michal Koutný,
	Shuah Khan, cgroups, linux-kselftest, linux-kernel, Rui Qi

Hi,

This series fixes two cpuset selftest issues.

Patch 1 removes awk -e from cpuset selftests. The option is accepted by
gawk, but rejected by mawk, causing mount point detection to fail on
systems where awk is provided by mawk.

Patch 2 preserves CPU hotplug write failures in test_cpuset_prs.sh. The
helper currently returns the status of pause after the write, hiding the
write failure from callers. Moving the write before the bookkeeping also
keeps OFFLINE_CPUS aligned with hotplug operations that actually
succeeded.

Testing:
- git apply --check the two patches in this series
- scripts/checkpatch.pl --strict on each patch
- bash -n tools/testing/selftests/cgroup/test_cpuset_prs.sh
- bash -n tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh
- mawk 'BEGIN {print 1}'

The full cpuset hotplug selftests were not run because they offline and
online CPUs.

Rui Qi (2):
  selftests/cgroup: Avoid awk -e in cpuset tests
  selftests/cgroup: Preserve CPU hotplug write errors

 tools/testing/selftests/cgroup/test_cpuset_prs.sh   | 5 +++--
 tools/testing/selftests/cgroup/test_cpuset_v1_hp.sh | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

-- 
2.20.1

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

end of thread, other threads:[~2026-08-10 14:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-09  8:21 [PATCH 0/2] selftests/cgroup: Fix cpuset test portability and hotplug error handling Rui Qi
2026-08-09  8:21 ` [PATCH 1/2] selftests/cgroup: Avoid awk -e in cpuset tests Rui Qi
2026-08-10  3:07   ` Ridong Chen
2026-08-10 14:49   ` Waiman Long
2026-08-09  8:21 ` [PATCH 2/2] selftests/cgroup: Preserve CPU hotplug write errors Rui Qi
2026-08-10  3:22   ` Ridong Chen
2026-08-10 14:53   ` Waiman Long

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