[Rpm-maint] [PATCH] Do not attempt running the test suite without fakechroot (ticket #851).
Ales Kozumplik
akozumpl at redhat.com
Mon Nov 14 12:11:14 UTC 2011
Partially resolves ticket #851.
---
tests/Makefile.am | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6f84093..d2b5254 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -99,8 +99,14 @@ testing$(bindir)/rpmbuild: ../rpmbuild
check_DATA = atconfig atlocal $(TESTSUITE)
check_DATA += testing$(bindir)/rpmbuild
+if HAVE_FAKECHROOT
check-local: $(check_DATA)
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) ||:
+else
+check-local:
+ echo "you need to have fakechroot installed"
+ exit 1
+endif !HAVE_FAKECHROOT
installcheck-local: $(check_DATA)
$(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
--
1.7.7.3
More information about the Rpm-maint
mailing list