tests: add dbus interface spread test #3014

Merged
merged 10 commits into from Apr 24, 2017

Conversation

Projects
None yet
5 participants
Contributor

fgimenez commented Mar 10, 2017

No description provided.

+ snap install --edge test-snapd-dbus-provider
+
+ echo "And the D-bus X11 dependencies are installed"
+ apt install -y dbus-x11
@mvo5

mvo5 Mar 13, 2017

Collaborator

Looks like we need to limit this to classic (via system:) if we apt here.

@fgimenez

fgimenez Mar 13, 2017

Contributor

@mvo5 indeed, very good catch, thanks!

Contributor

niemeyer commented Mar 13, 2017

/bin/bash: line 83: systemd-run: command not found on 14.04.

fgimenez added some commits Mar 14, 2017

Contributor

fgimenez commented Mar 14, 2017

@niemeyer thanks, i've added a specific upstart job for 14.04, please take another look.

fgimenez and others added some commits Mar 14, 2017

Contributor

zyga commented Apr 4, 2017

@fgimenez I think you need to build and upload a ppc64el version of this snap:

+ snap install --edge test-snapd-dbus-provider
error: cannot install "test-snapd-dbus-provider": snap not found

fgimenez added some commits Apr 4, 2017

Contributor

fgimenez commented Apr 4, 2017

@zyga thanks! the tests snaps are already in place

Looks good, one question inline.

+ snap install --edge test-snapd-dbus-consumer
+
+ echo "And the provider dbus loop is started"
+ dbus-launch > dbus.env
@mvo5

mvo5 Apr 20, 2017

Collaborator

The usual way to do this (as documented in the man-page) is eval $(dbus-launch --sh-syntax) - is this not working for some reason?

@fgimenez

fgimenez Apr 20, 2017

Contributor

@mvo5 exactly, when using eval $(dbus-launch --sh-syntax) I get:

+ sleep 1
+ MATCH 'hello world'
+ dbus-send --print-reply --dest=com.dbustest.HelloWorld /com/dbustest/HelloWorld com.dbustest.HelloWorld.SayHello
Failed to open connection to "session" message bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

error: pattern not found, got:

+ sleep 1
+ MATCH 'hello world'
+ dbus-send --print-reply --dest=com.dbustest.HelloWorld /com/dbustest/HelloWorld com.dbustest.HelloWorld.SayHello
Failed to open connection to "session" message bus: /usr/bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.
...

mvo5 approved these changes Apr 24, 2017

@mvo5 mvo5 merged commit 4baab61 into snapcore:master Apr 24, 2017

6 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
xenial-amd64 autopkgtest finished (success)
Details
xenial-i386 autopkgtest finished (success)
Details
xenial-ppc64el autopkgtest finished (success)
Details
yakkety-amd64 autopkgtest finished (success)
Details
zesty-amd64 autopkgtest finished (success)
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment