From 799e3a3e48ec731a5cda9bc9cddbb44cc96196864ba8a44890c21505efb42968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Sat, 31 Dec 2016 09:51:36 +0000 Subject: [PATCH] Accepting request 448292 from home:adamm:branches:systemsmanagement - Make cfengine home directory to avoid spamming logfiles during unit tests (bnc#1016848) OBS-URL: https://build.opensuse.org/request/show/448292 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/cfengine?expand=0&rev=151 --- cfengine.changes | 6 ++++++ cfengine.spec | 2 ++ make_home_dir_for_tests.patch | 15 +++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 make_home_dir_for_tests.patch diff --git a/cfengine.changes b/cfengine.changes index 20d2591..bb7dad6 100644 --- a/cfengine.changes +++ b/cfengine.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 30 12:46:35 UTC 2016 - adam.majer@suse.de + +- Make cfengine home directory to avoid spamming logfiles during + unit tests (bnc#1016848) + ------------------------------------------------------------------- Thu Dec 29 09:53:50 UTC 2016 - kkaempf@suse.com diff --git a/cfengine.spec b/cfengine.spec index a782939..0a91ab0 100644 --- a/cfengine.spec +++ b/cfengine.spec @@ -66,6 +66,7 @@ Patch1: 0001-Set-sys.bindir-to-usr-sbin-expect-cf-components-ther.patch Patch2: 0002-Simplify-and-fix-parsing-of-etc-SuSE-release-fixes-i.patch # SLE 11 or RHEL5 autoconf does not support AM_SUBST_NOTMAKE, kkaempf@suse.de +Patch10: make_home_dir_for_tests.patch Patch99: remove-am_subst_notmake.patch BuildRequires: bison @@ -177,6 +178,7 @@ Lots of examples promises for CFEngine. %if 0%{?suse_version} <= 1110 %patch99 -p1 %endif +%patch10 -p1 ##### rpmlint #### wrong-file-end-of-line-encoding diff --git a/make_home_dir_for_tests.patch b/make_home_dir_for_tests.patch new file mode 100644 index 0000000..6d2b593 --- /dev/null +++ b/make_home_dir_for_tests.patch @@ -0,0 +1,15 @@ +Author: Adam Majer +Upstream: https://tracker.mender.io/browse/CFE-2549 +BNC#1016848 +Summary: this tests requires home directory, otherwise spams logfile + +Index: cfengine-3.10.0b1/tests/load/run_lastseen_threaded_load.sh +=================================================================== +--- cfengine-3.10.0b1.orig/tests/load/run_lastseen_threaded_load.sh ++++ cfengine-3.10.0b1/tests/load/run_lastseen_threaded_load.sh +@@ -1,3 +1,5 @@ + #!/bin/sh + ++text -x ~/.cfagent/state || mkdir -p ~/.cfagent/state ++ + ./lastseen_threaded_load -c 1 4 1 1