Skip to content

Commit 711775f

Browse files
osctobeavagin
authored andcommitted
zdtm: cgroup_ifpriomap: Improve skip check's robustness.
cgroup_ifpriomap test needs net_prio cgroup, which might not be available. Make the .checkskip script check it. Signed-off-by: Michał Mirosław <[email protected]>
1 parent 42c1c84 commit 711775f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/bin/bash
2+
set -e
23

3-
! test -f /sys/fs/cgroup/cgroup.controllers
4+
test ! -f /sys/fs/cgroup/cgroup.controllers
5+
6+
grep -q '^net_prio\s' /proc/cgroups

0 commit comments

Comments
 (0)