upstart tests for initctl show-config and check-config fail in a chroot
Bug #728988 reported by
James Hunt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Fix Released
|
Undecided
|
James Hunt |
Bug Description
Running "make check" in a chroot environment (schroot, pbuilder, PPA) will fail due to dbus not being configured:
__________________
process 21149: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/
See the manual page for dbus-uuidgen to correct this issue.
__________________
This bug is to resolve this issue and remove the need for these particular tests to detect they are running in a chroot and disable themselves (ugh!)
Changed in upstart: | |
assignee: | nobody → James Hunt (jamesodhunt) |
Changed in upstart: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Also, note that there is odd dbus-ness using "bzr bd":
_______ _______ _______ _______ _______ _______ _______ ______
Testing show_config initctl. c:10954 (test_show_config). _______ _______ _______ _______ _______ _______ ______
...no emits, no start on, no stop on
BAD: wrong value for output[0], expected 'foo' got 'initctl: Unable to connect to session bus: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.'
at tests/test_
/bin/bash: line 5: 32180 Aborted (core dumped) ${dir}$tst
FAIL: test_initctl
_______
The crucial line being:
initctl: Unable to connect to session bus: //bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.'
This might be caused by dpkg-buildpackage unsetting DBUS_SESSION_ BUS_ADDRESS ?