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

Reply via email to