--shell does not work with --output-dir

Bug #1317078 reported by Martin Pitt
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

$ adt-run libpng -o /tmp/out --shell --- qemu /home/martin-scratch/adt-trusty-amd64-cloud.img
[...]
adt-run: & apt0t-build: - - - - - - - - - - running shell - - - - - - - - - -
qemu: terminating on signal 15 from pid 15437
Unexpected error:
Traceback (most recent call last):
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 710, in mainloop
    command()
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 647, in command
    r = f(c, ce)
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 617, in cmd_shell
    caller.hook_shell(c[1], c[2], c[3], c[4])
  File "/usr/bin/adt-virt-qemu", line 480, in hook_shell
    with open(stdout, 'w') as f:
IOError: [Errno 2] No such file or directory: '/proc/15433/fd/pipe:[967428]'
adt-run: testbed failed: cannot send to testbed: ['IOError: [Errno 32] Broken pipe\n']

Related branches

Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Martin Pitt (pitti)
Changed in autopkgtest (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 2.18

---------------
autopkgtest (2.18) unstable; urgency=medium

  Improvements:
  * adt-run: When running from git, show the current SHA and commit summary of
    HEAD.

  Bug fixes:
  * tests: Fix race in cleaning up ChrootRunner mounts.
  * adt-run: If apt-get update fails on publishing built binaries, retry after
    15 seconds.
  * VirtSubproc.cleanup(): Avoid recursion if something in hook_cleanup()
    bombs.
  * Fix --shell to also work with --output-dir. (LP: #1317078)

  Code cleanup:
  * VirtSubproc: Document and cleanup execute*() functions.
  * Some test robustifications, to avoid making too many assumptions about
    debug output.
  * adt-run: Eliminate usage of testbed "execute" command, which is too
    complicated and limiting. Use "print-execute-command" directly instead.
  * Drop "execute" command.
  * adt-run: Unify Testbed.command() and commandr() methods and make them
    stricter.
  * Add prefixes to all temporary directories.
  * Remove autopkgtest-xenlvm. It has been orphaned since ~ 2008, few to no
    current users, and no maintainer. (Closes: #508660, #680122)
  * Simplify build system.
  * Drop concept of "shstring". All runners must provide an auxverb now,
    possibly with a wrapper and quoting by themselves if their implementation
    can only deal with shell commands. This avoids having to tell apart these
    two cases in adt-run, clarifies the documentation, and greatly simplifies
    the code. (Closes: #750544)
  * qemu: Use low-level IO in runcmd. This avoids all the Python overhead and
    buffering and is less prone to bytes vs. string issues.
  * qemu: Fix text vs. binary confusion in reading and copying /etc/timezone.
  * schroot: Call schroot command with -q, to avoid stderr spew if the schroot
    has "message-verbosity=verbose".
  * Port to Python 3.

 -- Martin Pitt <email address hidden> Thu, 12 Jun 2014 07:48:58 +0200

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.