On (03/09/14 11:36), Nikolai Kondrashov wrote:
Hi everyone,
This patch adds preserving of mock configuration timestamps, so mock root
cache is not rebuilt unnecessarily, shaving off about a minute of CI run time.
Nick
From 0451699b7b7fb7a92151c00867f4036fc8feca8b Mon Sep 17 00:00:00
2001
From: Nikolai Kondrashov <Nikolai.Kondrashov(a)redhat.com>
Date: Wed, 3 Sep 2014 11:18:05 +0300
Subject: [PATCH 1/1] CI: Preserve mock config timestamps
Preserve timestamps of mock configuration files when customizing them in
CI to avoid unnecessary cache rebuilds. This reduces CI run time.
---
contrib/ci/run | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/ci/run b/contrib/ci/run
index 519ab77..379b99f 100755
--- a/contrib/ci/run
+++ b/contrib/ci/run
@@ -148,8 +148,10 @@ function mock_privileged_conf()
conf_dir=`mktemp --tmpdir --directory mock-config.XXXXXXXX`
trap 'trap - RETURN; rm -R "$conf_dir";' RETURN
- cp -r /etc/mock/* "$conf_dir"/
If you agree with my comment from
pdifferent thread than you can copy just
/etc/mock/default.cfg
Otherwise, I agree with using touch. It will speed up mock tests.
LS