[Pkg-libvirt-commits] [libguestfs] 33/266: tests: hotplug: Allow tests to be skipped.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:41:38 UTC 2014


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

bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.

commit d268de93949c2954fda8f0a1387b740903893481
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Jul 25 14:42:38 2014 +0100

    tests: hotplug: Allow tests to be skipped.
    
    They don't work on aarch64.
---
 tests/hotplug/test-hot-add.pl    | 2 ++
 tests/hotplug/test-hot-remove.pl | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/hotplug/test-hot-add.pl b/tests/hotplug/test-hot-add.pl
index 2496e08..034cff4 100755
--- a/tests/hotplug/test-hot-add.pl
+++ b/tests/hotplug/test-hot-add.pl
@@ -24,6 +24,8 @@ use Sys::Guestfs;
 
 my $g = Sys::Guestfs->new ();
 
+exit 77 if $ENV{SKIP_TEST_HOT_ADD_PL};
+
 # Skip the test if the default backend isn't libvirt, since only
 # the libvirt backend supports hotplugging.
 my $backend = $g->get_backend ();
diff --git a/tests/hotplug/test-hot-remove.pl b/tests/hotplug/test-hot-remove.pl
index aa6ab93..087399d 100755
--- a/tests/hotplug/test-hot-remove.pl
+++ b/tests/hotplug/test-hot-remove.pl
@@ -24,6 +24,8 @@ use Sys::Guestfs;
 
 my $g = Sys::Guestfs->new ();
 
+exit 77 if $ENV{SKIP_TEST_HOT_REMOVE_PL};
+
 # Skip the test if the default backend isn't libvirt, since only
 # the libvirt backend supports hotplugging.
 my $backend = $g->get_backend ();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list