[Qa-jenkins-scm] [jenkins.debian.net] 04/05: lvc: try setting the serial console port

Holger Levsen holger at layer-acht.org
Sun Nov 27 16:40:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit bd2fe29c9c3fdb604c86debced23f662b98f69fc
Author: Philip Hands <phil at hands.com>
Date:   Sun Nov 27 16:05:17 2016 +0100

    lvc: try setting the serial console port
---
 cucumber/features/support/helpers/vm_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cucumber/features/support/helpers/vm_helper.rb b/cucumber/features/support/helpers/vm_helper.rb
index 72b244e..5d02c11 100644
--- a/cucumber/features/support/helpers/vm_helper.rb
+++ b/cucumber/features/support/helpers/vm_helper.rb
@@ -80,7 +80,6 @@ class VM
     rexml = REXML::Document.new(default_domain_xml)
     rexml.elements['domain'].add_element('name')
     rexml.elements['domain/name'].text = @domain_name
-    rexml.elements['domain/devices/serial/source'].attributes['service'] = LIBVIRT_REMOTE_SHELL_PORT
     begin
       old_domain = @virt.lookup_domain_by_name(LIBVIRT_DOMAIN_NAME)
       rexml.elements['domain'].add_element('uuid')
@@ -88,6 +87,7 @@ class VM
       old_domain.undefine
     rescue
     end
+    rexml.elements['domain/devices/serial/source'].attributes['service'] = LIBVIRT_REMOTE_SHELL_PORT
     update(rexml.to_s)
     @display = Display.new(@domain_name, x_display)
     set_cdrom_boot(TAILS_ISO)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list