[Bug 1434163] [NEW] Can't run tests that require build in a readonly testbed

Leo Arias leo.arias at canonical.com
Thu Mar 19 16:17:31 UTC 2015


Public bug reported:

In the ubuntu-ota-tests project, the debian/control defines a python
package python3-ubuntu-ota-tests. We need this package to be in the
PYTHONPATH for it to be found by the upgrade hook.

If we run 
$ adt-run --unbuilt-tree . --- ssh -s adb

We will get:
dpkg-buildpackage: error: fakeroot not found, either install the fakeroot
package, specify a command with the -r option, or run this as root
blame: .
badpkg: rules build failed with exit code 2
adt-run [09:57:07]: ERROR: erroneous package: rules build failed with exit code 2
Exit request sent.

If we run:
$ bzr bd --result-dir=/tmp -- -uc -us
$ adt-run --binary /tmp/python3-ubuntu-ota-tests*.deb --built-tree . --- ssh -s ./adb-reboot-to-recovery

We will get:
sh: 1: cannot create /etc/apt/preferences.d/90autopkgtest: Read-only file system
Exit request sent.
<VirtSubproc>: failure: copydown destination failed, status 2
adt-run [09:49:48]: ERROR: testbed failed: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']

I think the right solution for this case is the second one, using a
built-tree, and send the deb to the testbed. So what we are missing is
to install those debs in the tmp directory just as the rest of
dependencies.

** Affects: autopkgtest (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/1434163

Title:
  Can't run tests that require build in a readonly testbed

Status in autopkgtest package in Ubuntu:
  New

Bug description:
  In the ubuntu-ota-tests project, the debian/control defines a python
  package python3-ubuntu-ota-tests. We need this package to be in the
  PYTHONPATH for it to be found by the upgrade hook.

  If we run 
  $ adt-run --unbuilt-tree . --- ssh -s adb

  We will get:
  dpkg-buildpackage: error: fakeroot not found, either install the fakeroot
  package, specify a command with the -r option, or run this as root
  blame: .
  badpkg: rules build failed with exit code 2
  adt-run [09:57:07]: ERROR: erroneous package: rules build failed with exit code 2
  Exit request sent.

  If we run:
  $ bzr bd --result-dir=/tmp -- -uc -us
  $ adt-run --binary /tmp/python3-ubuntu-ota-tests*.deb --built-tree . --- ssh -s ./adb-reboot-to-recovery

  We will get:
  sh: 1: cannot create /etc/apt/preferences.d/90autopkgtest: Read-only file system
  Exit request sent.
  <VirtSubproc>: failure: copydown destination failed, status 2
  adt-run [09:49:48]: ERROR: testbed failed: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']

  I think the right solution for this case is the second one, using a
  built-tree, and send the deb to the testbed. So what we are missing is
  to install those debs in the tmp directory just as the rest of
  dependencies.

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



More information about the foundations-bugs mailing list