mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
uml: tests: Skip some tests which cannot work with the UML backend.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user