Fix test.
This commit is contained in:
parent
f38df01017
commit
0fe0198608
@ -0,0 +1,38 @@
|
|||||||
|
From 1a0c80cbe9f561fd6a8801c3bfda1783ce40080f Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||||||
|
Date: Tue, 22 Jan 2019 23:22:55 +0000
|
||||||
|
Subject: [PATCH] =?UTF-8?q?tests:=20Make=20test-partition2.sh=20depend=20o?=
|
||||||
|
=?UTF-8?q?n=20=E2=80=98disk=E2=80=99=20file=20being=20created.?=
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
This requires guestfish, so make the test depend on that (although it
|
||||||
|
does not really need it).
|
||||||
|
|
||||||
|
Fixes commit bf41e6b04b683570e8b059527ef604add2d42705.
|
||||||
|
---
|
||||||
|
tests/Makefile.am | 7 ++++---
|
||||||
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
||||||
|
index 5e8b53c..859b6ed 100644
|
||||||
|
--- a/tests/Makefile.am
|
||||||
|
+++ b/tests/Makefile.am
|
||||||
|
@@ -798,9 +798,10 @@ test_offset_LDADD = libtest.la $(LIBGUESTFS_LIBS)
|
||||||
|
TESTS += test-offset2.sh
|
||||||
|
|
||||||
|
# partition filter test.
|
||||||
|
-TESTS += \
|
||||||
|
- test-partition1.sh \
|
||||||
|
- test-partition2.sh
|
||||||
|
+TESTS += test-partition1.sh
|
||||||
|
+if HAVE_GUESTFISH
|
||||||
|
+TESTS += test-partition2.sh
|
||||||
|
+endif
|
||||||
|
|
||||||
|
# truncate filter tests.
|
||||||
|
TESTS += \
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
@ -45,6 +45,8 @@ Source1: http://libguestfs.org/download/nbdkit/%{source_directory}/%{name
|
|||||||
Source2: libguestfs.keyring
|
Source2: libguestfs.keyring
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Patch1: 0001-tests-Make-test-partition2.sh-depend-on-disk-file-be.patch
|
||||||
|
|
||||||
%if 0%{patches_touch_autotools}
|
%if 0%{patches_touch_autotools}
|
||||||
BuildRequires: autoconf, automake, libtool
|
BuildRequires: autoconf, automake, libtool
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user