Skip to content

Commit

Permalink
zdtm: cgroup_ifpriomap: Improve skip check's robustness.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
osctobe authored and avagin committed Oct 13, 2023
1 parent 42c1c84 commit 711775f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/zdtm/static/cgroup_ifpriomap.checkskip
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

! test -f /sys/fs/cgroup/cgroup.controllers
test ! -f /sys/fs/cgroup/cgroup.controllers

grep -q '^net_prio\s' /proc/cgroups

0 comments on commit 711775f

Please sign in to comment.