certain upstart tests should be run as root (or via fakeroot)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
New
|
Undecided
|
Unassigned |
Bug Description
Currently, the upstart unit/feature tests ('make check') are expected to run as a non-root user. For most tests, this is perfectly acceptable.
However, there are some test scenarios which really do need root privileges. A good example being a test for a new JobProcessError
The plan is this:
(1) Display an informational message as part of the 'make check' run showing the user who is running the tests.
(2) Create a new test program called 'init/tests/
WARNING: test 'test_root' skipped as requires root privileges.
Note that we may be able to use fakeroot(1) to run 'test_root' but this needs further investigation.
On Mon, Dec 03, 2012 at 09:22:54AM -0000, James Hunt wrote:
> Note that we may be able to use fakeroot(1) to run 'test_root' but this
> needs further investigation.
You should not rely on fakeroot to wrap arbitrary syscalls. It generally
only handles those calls that are needed to be able to build arbitrary
tarballs.
Cf. http:// bugs.debian. org/693580.