Skip to content

Commit c5d33b1

Browse files
committed
Fix update cpuset on single processor box
Fixes: #1050 Signed-off-by: Qiang Huang <[email protected]>
1 parent 7ec24c5 commit c5d33b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/update.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function check_cgroup_value() {
9393

9494
# update cpuset if supported (i.e. we're running on a multicore cpu)
9595
cpu_count=$(grep '^processor' /proc/cpuinfo | wc -l)
96-
if [ $cpu_count -ge 1 ]; then
96+
if [ $cpu_count -gt 1 ]; then
9797
runc update test_update --cpuset-cpus "1"
9898
[ "$status" -eq 0 ]
9999
check_cgroup_value $CGROUP_CPUSET "cpuset.cpus" 1

0 commit comments

Comments
 (0)