Skip to content

Commit

Permalink
Fix no-command-error igr test if cgroup cannot be determined
Browse files Browse the repository at this point in the history
  • Loading branch information
davmac314 committed Jun 13, 2022
1 parent 71b090e commit 9879999
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/igr-tests/no-command-error/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@

rm -f dinit-run.log

../../dinit -d sd -u -p socket -q \
# If cgroups support, supply cgroup base path to avoid potential "unable to determine
# cgroup" message
CGROUPS_BASE=""
if ../../dinit --version | grep -q " cgroups"; then
CGROUPS_BASE="-b \"\""
fi

../../dinit -d sd -u -p socket -q $CGROUPS_BASE \
no-command -l dinit-run.log

STATUS=FAIL
Expand Down

0 comments on commit 9879999

Please sign in to comment.