[Bug 1424889] Re: Click app (Camera) cannot find qttestability library

Martin Pitt martin.pitt at ubuntu.com
Wed Feb 25 06:10:30 UTC 2015


Mystery solved:

[13232.018182] type=1400 audit(1424844047.097:122): apparmor="DENIED"
operation="open" profile="com.ubuntu.camera_camera_3.0.0.484" name="/tmp
/adt-run.cXxSBr/deps/usr/lib/libqttestability.so.1.0.0" pid=31948 comm
="camera-app" requested_mask="r" denied_mask="r" fsuid=32011 ouid=0

Christopher's original report specified  a --click explicity; for that,
autopkgtest will modify the apparmor profile to allow introspection and
loading stuff from the test deps temp dir. But  the ubuntu-sanity-tests
invocation does not involve any explicit --click, thus there is no
apparmor modification.

For this it seems we need to bite the bullet and modify the apparmor
profile for *all* installed clicks: i. e. if the test is running in a
touch+apparmor+click environment, but only a Debian package is specified
and no --click. This will add 3 minutes to the test run (one complete
apparmor profile update takes ~ 1.5 min, and we have to revert it at the
end of the test), but I guess we have to bite that bullet.

** Changed in: autopkgtest (Ubuntu)
   Importance: Undecided => High

** Changed in: autopkgtest (Ubuntu)
       Status: New => In Progress

** Changed in: autopkgtest (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1424889

Title:
  Click app (Camera) cannot find qttestability library

Status in autopkgtest package in Ubuntu:
  In Progress

Bug description:
  I'm unable to run the camera autopilot tests using adt-run. According
  to the application log[1] it fails to find the qttestability library
  file (and thus autopilot can't introspect it.)

  To reproduce this I  run these commands:
    $ ubuntu-device-flash --developer-mode --password 0000 --channel="ubuntu-touch/devel-proposed" --wipe
    $ phablet-network
    $ phablet-click-test-setup --click com.ubuntu.camera
    $  adt-run -d -l /tmp/adt-run-camera.log --output-dir /tmp/veebers/ --click com.ubuntu.camera --timeout-short=600 --- ssh -s adb -- -p 0000

  I've pastebin-ed the adt-run log too:
  http://paste.ubuntu.com/10380312/

  A quick look shows that LD_LIBRARY_PATH includes the path that has the
  .so files. Further more if I set the image writable and install the
  qttestability-autopilot package then reset the image to readonly
  running this command works (presumably due to using the dpkg installed
  library).

  [1] See attached subunit file which includes application log.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1424889/+subscriptions



More information about the foundations-bugs mailing list