[Bug 1453154] [NEW] please support --show-boot option in snappy runner

Michael Vogt michael.vogt at canonical.com
Fri May 8 14:09:43 UTC 2015


Public bug reported:

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
"""

** 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/1453154

Title:
  please support --show-boot option in snappy runner

Status in autopkgtest package in Ubuntu:
  New

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
  """

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



More information about the foundations-bugs mailing list