uml: tests: Skip some tests which cannot work with the UML backend.

This commit is contained in:
Richard W.M. Jones
2013-08-12 16:19:11 +01:00
parent 4c66cbc3be
commit 8d5a0d77fb
5 changed files with 25 additions and 0 deletions

View File

@@ -25,6 +25,11 @@ use Sys::Guestfs;
exit 77 if $ENV{SKIP_TEST_DISK_LABELS_PL};
if (Sys::Guestfs->new()->get_backend() eq "uml") {
print "$0: test skipped because UML backend does not support disk labels\n";
exit 77
}
my $g = Sys::Guestfs->new ();
# Add two drives.

View File

@@ -26,6 +26,11 @@ my $disk = "../guests/fedora.img";
exit 77 if $ENV{SKIP_TEST_NBD_PL};
if (Sys::Guestfs->new()->get_backend() eq "uml") {
print "$0: test skipped because UML backend does not support NBD\n";
exit 77
}
# Check we have qemu-nbd.
if (system ("qemu-nbd --help >/dev/null 2>&1") != 0) {
print "$0: test skipped because qemu-nbd program not found\n";

View File

@@ -34,6 +34,11 @@ if [[ "$backend" =~ ^libvirt ]]; then
exit 77
fi
if [ "$backend" = "uml" ]; then
echo "$0: test skipped because uml backend does not support 'iface' param."
exit 77
fi
rm -f rhbz690819.img
../../fish/guestfish sparse rhbz690819.img 100M

View File

@@ -34,6 +34,11 @@ if [[ "$backend" =~ ^libvirt ]]; then
exit 77
fi
if [ "$backend" = "uml" ]; then
echo "$0: test skipped because uml backend does not support 'iface' param."
exit 77
fi
rm -f rhbz975797-*.img
# The timeout utility was not available in RHEL 5.

View File

@@ -35,6 +35,11 @@ if ! rsync --help >/dev/null 2>&1; then
exit 77
fi
if [ "$($guestfish get-backend)" = "uml" ]; then
echo "$0: skipping test because networking is not available in the UML backend"
exit 77
fi
# If rsync is not available, bail.
if ! $guestfish -a /dev/null run : available rsync; then
echo "$0: skipping test because rsync is not available in the appliance"