mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: skip test-relabel.pl when selinuxrelabel is not available
test-relabel.pl performs a full SELinux relabelling of the phony guest, and the selinux_relabel API does not work if the "selinuxrelabel" feature is not available.
This commit is contained in:
@@ -51,6 +51,13 @@ unless ($g->feature_available (["linuxxattrs"])) {
|
||||
exit 77
|
||||
}
|
||||
|
||||
# If SELinux relabelling is not available then we cannot test this.
|
||||
unless ($g->feature_available (["selinuxrelabel"])) {
|
||||
print "$prog: test skipped because 'selinuxrelabel' feature not available.\n";
|
||||
$g->close ();
|
||||
exit 77
|
||||
}
|
||||
|
||||
$g->part_disk ("/dev/sda", "mbr");
|
||||
$g->mkfs ("ext4", "/dev/sda1");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user