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

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 30 08:26:02 UTC 2014


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

bengen pushed a commit to branch master
in repository libguestfs.

commit d07b48ae6e7c2efc330ab73704a00812a289eef3
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.
    
    (cherry picked from commit d268de93949c2954fda8f0a1387b740903893481)
---
 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