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 committed Aug 21, 2023
1 parent 219fc51 commit 9d1d2e9
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 9d1d2e9

Please sign in to comment.