Fix the build in Koji

This commit is contained in:
Mathieu Bridon 2015-01-20 19:00:57 +01:00 committed by Ignacio Casal Quinteiro
parent 0c457bfd03
commit 36b21f132a
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,31 @@
From 5eacce57a3556ac39fa8aadfba35788ee29f5fb1 Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <bochecha@daitauha.fr>
Date: Tue, 20 Jan 2015 17:59:21 +0100
Subject: [PATCH] Disable some unit tests
These tests just can't work in Koji, because they require an Internet
access, but Koji builders don't have access to the outside world.
---
tests/network/remote/remotes.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/network/remote/remotes.c b/tests/network/remote/remotes.c
index 995f1d5..d9b8f5b 100644
--- a/tests/network/remote/remotes.c
+++ b/tests/network/remote/remotes.c
@@ -549,6 +549,7 @@ void test_network_remote_remotes__fetch_from_anonymous(void)
git_remote_free(remote);
}
+/* Disabling, can't work in Koji as there's no network access there
void test_network_remote_remotes__single_branch(void)
{
git_clone_options opts = GIT_CLONE_OPTIONS_INIT;
@@ -581,3 +582,4 @@ void test_network_remote_remotes__restricted_refspecs(void)
cl_git_fail_with(GIT_EINVALIDSPEC, git_clone(&repo, "git://github.com/libgit2/TestGitRepository", "./restrict-refspec", &opts));
}
+*/
--
2.1.0

View File

@ -13,6 +13,8 @@ BuildRequires: python2
BuildRequires: zlib-devel
Provides: bundled(libxdiff)
Patch0: 0001-Disable-some-unit-tests.patch
%description
libgit2 is a portable, pure C implementation of the Git core methods
provided as a re-entrant linkable library with a solid API, allowing
@ -30,6 +32,8 @@ developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1
# Remove VCS files from examples
find examples -name ".gitignore" -delete -print