[PATCH tck 5/6] Delay before hotplugging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When testing larger domains, a delay is necessary to ensure the test domain
is fully initialized before hotplugging disks and/or nics.

Signed-off-by: Mike Latimer <mlatimer@xxxxxxxx>
---
 scripts/domain/200-disk-hotplug.t     | 1 +
 scripts/domain/210-nic-hotplug.t      | 1 +
 scripts/domain/215-nic-hotplug-many.t | 1 +
 3 files changed, 3 insertions(+)

diff --git a/scripts/domain/200-disk-hotplug.t b/scripts/domain/200-disk-hotplug.t
index 4c54b6b..2edf0c9 100644
--- a/scripts/domain/200-disk-hotplug.t
+++ b/scripts/domain/200-disk-hotplug.t
@@ -46,6 +46,7 @@ my $xml = $tck->generic_domain(name => "tck")->as_xml;
 diag "Creating a new transient domain";
 my $dom;
 ok_domain(sub { $dom = $conn->create_domain($xml) }, "created transient domain object");
+sleep(20);
 
 
 my $path = $tck->create_sparse_disk("200-disk-hotplug", "extra.img", 100);
diff --git a/scripts/domain/210-nic-hotplug.t b/scripts/domain/210-nic-hotplug.t
index ac9048e..6053222 100644
--- a/scripts/domain/210-nic-hotplug.t
+++ b/scripts/domain/210-nic-hotplug.t
@@ -46,6 +46,7 @@ my $xml = $tck->generic_domain(name => "tck")->as_xml;
 diag "Creating a new transient domain";
 my $dom;
 ok_domain(sub { $dom = $conn->create_domain($xml) }, "created transient domain object");
+sleep(20);
 
 my $mac = "00:11:22:33:44:55";
 my $model = "virtio";
diff --git a/scripts/domain/215-nic-hotplug-many.t b/scripts/domain/215-nic-hotplug-many.t
index 0270054..9b345d0 100644
--- a/scripts/domain/215-nic-hotplug-many.t
+++ b/scripts/domain/215-nic-hotplug-many.t
@@ -46,6 +46,7 @@ my $xml = $tck->generic_domain(name => "tck")->as_xml;
 diag "Creating a new transient domain";
 my $dom;
 ok_domain(sub { $dom = $conn->create_domain($xml) }, "created transient domain object");
+sleep(20);
 
 my $mac1 = "01:11:22:33:44:55";
 my $mac2 = "02:11:22:33:44:55";
-- 
1.8.4.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]