Skip virt-sysprep test.

This commit is contained in:
Richard W.M. Jones 2015-08-02 17:34:58 +01:00
parent e1b82c0b8a
commit 6914bcb479
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From d9c63708311f9b5c309dd1a17b25329f99bac710 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sun, 2 Aug 2015 17:33:07 +0100
Subject: [PATCH] sysprep: Allow test-virt-sysprep.sh to be skipped.
It fails in Fedora Rawhide because LVM is broken (RHBZ#1237136).
---
sysprep/test-virt-sysprep.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sysprep/test-virt-sysprep.sh b/sysprep/test-virt-sysprep.sh
index 7ec96d0..14cd492 100755
--- a/sysprep/test-virt-sysprep.sh
+++ b/sysprep/test-virt-sysprep.sh
@@ -19,6 +19,11 @@
export LANG=C
set -e
+if [ -n "$SKIP_TEST_VIRT_SYSPREP_SH" ]; then
+ echo "$0: test skipped because environment variable is set."
+ exit 77
+fi
+
# Get a comma-separated list of the enabled-by-default operations.
operations=$(
virt-sysprep --list-operations |
--
2.5.0

View File

@ -28,13 +28,16 @@ Summary: Access and modify virtual machine disk images
Name: libguestfs
Epoch: 1
Version: 1.31.1
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
# Source and patches.
URL: http://libguestfs.org/
Source0: http://libguestfs.org/download/1.29-development/%{name}-%{version}.tar.gz
# Upstream commit d9c63708311f9b5c309dd1a17b25329f99bac710.
Patch1: 0001-sysprep-Allow-test-virt-sysprep.sh-to-be-skipped.patch
# Basic build requirements:
BuildRequires: perl(Pod::Simple)
BuildRequires: perl(Pod::Man)
@ -788,6 +791,7 @@ for %{name}.
%setup -q
# Apply patches, if any, here.
%patch1 -p1
# For Python 3 we must build libguestfs twice. This creates:
# %{name}-%{version}/
@ -928,6 +932,7 @@ export SKIP_TEST_VGRENAME=1
export SKIP_TEST_LUKS_SH=1
export SKIP_TEST_MDADM_SH=1
export SKIP_TEST_VIRT_INSPECTOR_SH=1
export SKIP_TEST_VIRT_SYSPREP_SH=1
# Skip gnulib tests which fail (probably these are kernel/glibc bugs).
pushd gnulib/tests
@ -1373,6 +1378,9 @@ rm -r $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/dllv2v_test_harness*
%changelog
* Sun Aug 2 2015 Richard W.M. Jones <rjones@redhat.com> - 1:1.31.1-2
- Skip virt-sysprep test.
* Fri Jul 31 2015 Richard W.M. Jones <rjones@redhat.com> - 1:1.31.1-1
- New upstream version 1.31.1.