mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
tests/int: suppress bogus error
The situation when /sys/fs/cgroup/unified is not present normal and
should not result in anything on stderr. Suppress it.
Fixes: cc15b887a0
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -126,7 +126,7 @@ function init_cgroup_paths() {
|
||||
CGROUP_SUBSYSTEMS+=" freezer"
|
||||
fi
|
||||
else
|
||||
if stat -f -c %t /sys/fs/cgroup/unified | grep -qFw 63677270; then
|
||||
if stat -f -c %t /sys/fs/cgroup/unified 2>/dev/null | grep -qFw 63677270; then
|
||||
CGROUP_HYBRID=yes
|
||||
fi
|
||||
CGROUP_V1=yes
|
||||
|
||||
Reference in New Issue
Block a user