please support --show-boot option in snappy runner

Bug #1453154 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Sometimes it can be really useful to see the output of the boot in a snappy test run. Especially for the failover tests etc.

So it would be nice to have "-serial stdio" instead of "-serial none" in the snappy runnser:
"""
diff --git a/ssh-setup/snappy b/ssh-setup/snappy
index 8f1c5f9..b88afe1 100755
--- a/ssh-setup/snappy
+++ b/ssh-setup/snappy
@@ -138,7 +138,7 @@ open() {
     # start QEMU; redirect its stdout/err to a copy of our stderr to avoid the
     # setup script becoming a zombie at the end
     exec 3>&2
- $QEMU_CMD -snapshot -drive file="$IMAGE",if=virtio -redir tcp:$port::22 -monitor none -serial none </dev/null >&3 2>&3 &
+ $QEMU_CMD -snapshot -drive file="$IMAGE",if=virtio -redir tcp:$port::22 -monitor none -serial stdio </dev/null >&3 2>&3 &
     QEMU_PID=$!
     echo $QEMU_PID > $port_lock_file
     sleep 3
"""

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

This bug was fixed in the package autopkgtest - 3.14.1

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

  * Go back to using the backgrounded reboot command as we had before 3.14.
    Just calling "reboot" is prone to hangs and timeouts in case reboot is too
    fast and shuts down our communication channel.
  * Fix --override-control option in adt-run(1). (LP: #1453495)
  * Fail with an error if --override-control file does not exist.
    (LP: #1453503)
  * ssh-setup/snappy: Add -b/--show-boot option to direct boot and console
    messages to stdout. (LP: #1453154)
  * adt-virt-qemu.1: Document --show-boot option.
  * Add test case for using a @ command line include file for a virt runner.
  * Strip leading and trailing space from argument lines in '@' included
    command line argument files. (LP: #1453498)

 -- Martin Pitt <email address hidden> Wed, 13 May 2015 14:45:43 +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.