Allow running multiple jobs 48/1848/1
authorchengli3 <cheng1.li@intel.com>
Fri, 25 Oct 2019 09:28:47 +0000 (17:28 +0800)
committerCheng Li <cheng1.li@intel.com>
Fri, 25 Oct 2019 09:41:04 +0000 (09:41 +0000)
The Vm created by vagrant has the same name. So we add a random suffix
to alllow running multiple jobs.

Signed-off-by: chengli3 <cheng1.li@intel.com>
Change-Id: I8adfba55192f7a965c4a4a18277a6c747fd7514c
(cherry picked from commit 08cbe6395d795c3964b618abe0720b76d883d8d0)

Vagrantfile

index 6cde8df..547d308 100644 (file)
@@ -7,6 +7,8 @@ Vagrant.configure("2") do |config|
   config.vm.synced_folder ".", "/vagrant"
   config.vm.provider :libvirt do |libvirt|
     libvirt.graphics_ip = '0.0.0.0'
+    # add random suffix to allow running multiple jobs
+    libvirt.random_hostname = 'yes'
     libvirt.cpus = 16
     libvirt.memory = 32768
     libvirt.machine_virtual_size = 400