diff options
| author | Hongfu Li <lihongfu@kylinos.cn> | 2026-05-08 11:34:53 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-05-08 06:16:39 -1000 |
| commit | 7ea04cc4fe3cee2139cc2474cadaecc7c53d986d (patch) | |
| tree | 26abbc6fa44c0080fc299be6c4f3406d6b2aa201 | |
| parent | 5bbb3453e8f35e1eacde30459e1fa7625c8d6d21 (diff) | |
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>
| -rwxr-xr-x | tools/testing/selftests/cgroup/test_cpuset_prs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/cgroup/test_cpuset_prs.sh b/tools/testing/selftests/cgroup/test_cpuset_prs.sh index a56f4153c64d..df89ddfa073f 100755 --- a/tools/testing/selftests/cgroup/test_cpuset_prs.sh +++ b/tools/testing/selftests/cgroup/test_cpuset_prs.sh @@ -617,7 +617,7 @@ set_ctrl_state_noerr() online_cpus() { - [[ -n "OFFLINE_CPUS" ]] && { + [[ -n "$OFFLINE_CPUS" ]] && { for C in $OFFLINE_CPUS do write_cpu_online ${C}=1 |
