Do not attempt running the test suite without fakechroot (ticket #851).
authorAles Kozumplik <akozumpl@redhat.com>
Mon, 14 Nov 2011 08:58:04 +0000 (09:58 +0100)
committerAles Kozumplik <akozumpl@redhat.com>
Wed, 16 Nov 2011 08:32:07 +0000 (09:32 +0100)
Partially resolves ticket #851.

tests/Makefile.am

index 6f84093..d2b5254 100644 (file)
@@ -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)' \