test_util_check_env "cgroup sandbox" test fails with cgmanager installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
For a few days we now install cgmanager as a dependency of systemd-shim, i. e. essentially by default. This caused one upstart test to fail:
make[4]: Entering directory '/tmp/adt-
(null): I am in freezer cgroup: /
(null):
(null):
ok 1 - test environment
ok 2 - checking for overlayfs
ok 3 - checking for cgmanager
not ok 4 - cgroup sandbox
/bin/bash: line 5: 10695 Aborted (core dumped) ${dir}$tst
FAIL: test_util_check_env
=======
1 of 1 test failed
Please report to <email address hidden>
=======
full log on https:/
jodh | hallyn_: I don't think the upstart tests should be managing that. Clearly, something changed in the env to now cause this test to fail in the jenkins env (works fine on the buildd's and locally). But, the test should prolly check to see if they are already in a cgroup and if not, print a warning and skip that test (as we do for overlayfs).
hallyn_ | oh, well, the test doesn't run if cgmanager isn't installed
hallyn_ | so, that's what changed :)
hallyn_ | jodh: so teh testcase could simply try 'cgm create memory xxx', and if that fails, say "sorry i'm not in my own cgroup; exit"
tags: | added: autopkgtest |