Hi folks,
this small patch adds a commented out %check section explaining how to execute
the tests and why they can't be run in a limited build environment (like
Feodra's Koji).
For more info see:
https://fedoraproject.org/wiki/QA/Testing_in_check
--
Alex
>From 77c8edd94f5d91f790f5e82a1f9674738196f680 Mon Sep 17 00:00:00 2001
From: Alexander Todorov <atodorov@xxxxxxxxxx>
Date: Tue, 11 Mar 2014 17:36:38 +0200
Subject: [PATCH] add %check section explaining how to execute yum-utils tests and why they can't run in a limited build environment
---
yum-utils.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/yum-utils.spec b/yum-utils.spec
index de6fbfd..47a9c7d 100644
--- a/yum-utils.spec
+++ b/yum-utils.spec
@@ -421,6 +421,10 @@ install -m 644 versionlock/versionlock.list $RPM_BUILD_ROOT/%{_sysconfdir}/yum/p
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/yum.repos.d
touch $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d/_local.repo
+%check
+# To execute: ./test/test-all
+# Tests are not suitable for running at build time
+# because they require networking and a populated /var/cache/yum
%clean
rm -rf $RPM_BUILD_ROOT
--
1.7.1
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum