diff options
| author | Hongfu Li <lihongfu@kylinos.cn> | 2026-05-11 04:39:57 +0300 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-05-11 04:54:12 +0300 |
| commit | 2a3d7256faf06d1a15bb5b07e851ac4e1680c26d (patch) | |
| tree | d0a8f9f2081e2a891f0953dfa8de3bf71928e742 /tools/lib/python | |
| parent | e32e6f02168f2ad7991eb5d160d312d2001520c8 (diff) | |
| download | linux-2a3d7256faf06d1a15bb5b07e851ac4e1680c26d.tar.xz | |
selftests/cgroup: Fix string comparison in write_test
Use string comparison (!=) instead of numeric comparison (-ne) for
cpuset values like "0-1".
For example:
$ [[ "0-1" != "2-3" ]] && echo "true" || echo "false"
true
$ [[ "0-1" -ne "2-3" ]] && echo "true" || echo "false"
false
Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
