]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/cgroup: Fix incorrect variable check in online_cpus()
authorHongfu Li <lihongfu@kylinos.cn>
Fri, 8 May 2026 03:34:53 +0000 (11:34 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 8 May 2026 16:16:39 +0000 (06:16 -1000)
commit7ea04cc4fe3cee2139cc2474cadaecc7c53d986d
tree26abbc6fa44c0080fc299be6c4f3406d6b2aa201
parent5bbb3453e8f35e1eacde30459e1fa7625c8d6d21
selftests/cgroup: Fix incorrect variable check in online_cpus()

"OFFLINE_CPUS" is a literal string that is always non-empty. It should
be "$OFFLINE_CPUS" to check the variable's value instead.

Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/test_cpuset_prs.sh