diff --git a/src/igr-tests/no-command-error/run-test.sh b/src/igr-tests/no-command-error/run-test.sh index ca0ec8f7..c8ca6433 100755 --- a/src/igr-tests/no-command-error/run-test.sh +++ b/src/igr-tests/no-command-error/run-test.sh @@ -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