[libconfig-model-perl] 01/02: add patch to fix file_mode test
dod at debian.org
dod at debian.org
Wed Mar 8 18:17:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository libconfig-model-perl.
commit 2d6ba97a78116b6fb5c57c9e49b33a6cd52de8be
Author: Dominique Dumont <dod at debian.org>
Date: Wed Mar 8 19:02:44 2017 +0100
add patch to fix file_mode test
---
debian/patches/fix-file-mode-test | 29 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 30 insertions(+)
diff --git a/debian/patches/fix-file-mode-test b/debian/patches/fix-file-mode-test
new file mode 100644
index 0000000..ebac8cb
--- /dev/null
+++ b/debian/patches/fix-file-mode-test
@@ -0,0 +1,29 @@
+Description: Fix file mode test
+ with file_mode set to a+x, the file mode depends on
+ the umask of the build host. It's different from the
+ author system on Debian builkd host.
+ .
+ The simple solution is to set the mode with 0755.
+Author: dod
+--- a/t/model_tests.d/backend-plainfile-test-conf.pl
++++ b/t/model_tests.d/backend-plainfile-test-conf.pl
+@@ -65,7 +65,7 @@
+ auto_delete => '1',
+ backend => 'PlainFile',
+ config_dir => 'debian',
+- file_mode => 'a+x',
++ file_mode => '0755',
+ file => '&index(-).&element(-).&element'
+ }]
+ );
+--- a/t/model_tests.d/backend-ini-test-conf.pl
++++ b/t/model_tests.d/backend-ini-test-conf.pl
+@@ -58,7 +58,7 @@
+ # the $conf_file_name and $conf_dir variable above
+ config_dir => '/etc/',
+ file => 'test.ini',
+- file_mode => 'g+w',
++ file_mode => 'a=r,ug+w',
+ auto_create => 1,
+ }],
+ );
diff --git a/debian/patches/series b/debian/patches/series
index e45baf8..5d7faaa 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
#fix-cryptic-message
+fix-file-mode-test
fix-debci
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-perl.git
More information about the Pkg-perl-cvs-commits
mailing list