Commit 3574b152 authored by Daniel P. Berrangé's avatar Daniel P. Berrangé

scripts: fix the various hotplug tests

PCI device hotunplug requires a running guest OS that cooperates with
the ACPI unplug request. We must thus boot a real guest and wait for it
to be ready before running the tests.
Reviewed-by: 's avatarLaine Stump <laine@laine.org>
Signed-off-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
parent c8806ee7
......@@ -41,12 +41,14 @@ END {
}
my $xml = $tck->generic_domain(name => "tck")->as_xml;
my $xml = $tck->generic_domain(name => "tck", fullos => 1)->as_xml;
diag "Creating a new transient domain";
my $dom;
ok_domain(sub { $dom = $conn->create_domain($xml) }, "created transient domain object");
diag "Waiting 30 seconds for guest to finish booting";
sleep(30);
my $path = $tck->create_sparse_disk("200-disk-hotplug", "extra.img", 100);
......
......@@ -41,12 +41,15 @@ END {
}
my $xml = $tck->generic_domain(name => "tck")->as_xml;
my $xml = $tck->generic_domain(name => "tck", fullos => 1)->as_xml;
diag "Creating a new transient domain";
my $dom;
ok_domain(sub { $dom = $conn->create_domain($xml) }, "created transient domain object");
diag "Waiting 30 seconds for guest to finish booting";
sleep(30);
my $supported = 1;
foreach my $dev (qw/vdb sdb/) {
my $path = $tck->create_sparse_disk("200-disk-hotplug", "extra-$dev.img", 100);
......
......@@ -41,12 +41,15 @@ END {
}
my $xml = $tck->generic_domain(name => "tck")->as_xml;
my $xml = $tck->generic_domain(name => "tck", fullos => 1)->as_xml;
diag "Creating a new transient domain";
my $dom;
ok_domain(sub { $dom = $conn->create_domain($xml) }, "created transient domain object");
diag "Waiting 30 seconds for guest to finish booting";
sleep(30);
my $mac = "00:11:22:33:44:55";
my $model = "virtio";
......
......@@ -41,12 +41,15 @@ END {
}
my $xml = $tck->generic_domain(name => "tck")->as_xml;
my $xml = $tck->generic_domain(name => "tck", fullos => 1)->as_xml;
diag "Creating a new transient domain";
my $dom;
ok_domain(sub { $dom = $conn->create_domain($xml) }, "created transient domain object");
diag "Waiting 30 seconds for guest to finish booting";
sleep(30);
my $mac1 = "02:11:22:33:44:55";
my $mac2 = "02:12:22:33:44:55";
my $mac3 = "02:13:22:33:44:55";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment