summaryrefslogtreecommitdiffstats
path: root/cucumber/features/support/helpers
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-07-20 15:02:25 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-20 15:56:13 +0200
commit1463aca603ae160da0ad51c8c218ac8efb790198 (patch)
treeecab3132bfd65d96a762250ca002ef5591736073 /cucumber/features/support/helpers
parent3cea100c594498946683e41129f76e206269fbed (diff)
downloadjenkins.debian.net-1463aca603ae160da0ad51c8c218ac8efb790198.tar.xz
lvc: uniquify VM's serial-port port, based on $executor_number
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'cucumber/features/support/helpers')
-rw-r--r--cucumber/features/support/helpers/vm_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/cucumber/features/support/helpers/vm_helper.rb b/cucumber/features/support/helpers/vm_helper.rb
index db8a2e67..72b244e4 100644
--- a/cucumber/features/support/helpers/vm_helper.rb
+++ b/cucumber/features/support/helpers/vm_helper.rb
@@ -80,6 +80,7 @@ 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')