[PATCH] Add --quiet to test gpg invocations,
to silence "trustdb created" messages
Alex Vandiver
alexmv at bestpractical.com
Wed Apr 28 19:10:25 UTC 2010
---
It turns out that --quiet is enough to avoid the "trustdb created"
messages, so let's do that. I don't _know_ of any obvious way that a
user's ~/.gnupg could mess up tests , but I'm sure there is one.
Having to hope that a user's local configuration is completely sane is
slightly worrisome to me.
t/02-gpg.t | 1 +
t/03-composite-filesystem.t | 1 +
t/03-composite-ftp.t | 1 +
t/03-composite-sftp.t | 1 +
t/05-filename-escaping.t | 1 +
5 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/t/02-gpg.t b/t/02-gpg.t
index b919e1a..74d1d45 100644
--- a/t/02-gpg.t
+++ b/t/02-gpg.t
@@ -16,6 +16,7 @@ if (`gpg --version`) {
}
my $gpg_args = ["--no-default-keyring",
+ "--quiet",
"--keyring=$Bin/data/pubring-test.gpg",
"--secret-keyring=$Bin/data/secring-test.gpg"];
diff --git a/t/03-composite-filesystem.t b/t/03-composite-filesystem.t
index c89bf54..6641295 100644
--- a/t/03-composite-filesystem.t
+++ b/t/03-composite-filesystem.t
@@ -17,6 +17,7 @@ if ($gpg_version = `gpg --version`) {
}
my $gpg_args = ["--no-default-keyring",
+ "--quiet",
"--keyring=$Bin/data/pubring-test.gpg",
"--secret-keyring=$Bin/data/secring-test.gpg"];
diff --git a/t/03-composite-ftp.t b/t/03-composite-ftp.t
index d60318b..343b212 100644
--- a/t/03-composite-ftp.t
+++ b/t/03-composite-ftp.t
@@ -32,6 +32,7 @@ if ($ENV{BRACKUP_TEST_FTP}) {
}
my $gpg_args = ["--no-default-keyring",
+ "--quiet",
"--keyring=$Bin/data/pubring-test.gpg",
"--secret-keyring=$Bin/data/secring-test.gpg"];
diff --git a/t/03-composite-sftp.t b/t/03-composite-sftp.t
index 0d7af67..da29660 100644
--- a/t/03-composite-sftp.t
+++ b/t/03-composite-sftp.t
@@ -24,6 +24,7 @@ if ($ENV{BRACKUP_TEST_SFTP}) {
}
my $gpg_args = ["--no-default-keyring",
+ "--quiet",
"--keyring=$Bin/data/pubring-test.gpg",
"--secret-keyring=$Bin/data/secring-test.gpg"];
diff --git a/t/05-filename-escaping.t b/t/05-filename-escaping.t
index f10511c..0107e87 100644
--- a/t/05-filename-escaping.t
+++ b/t/05-filename-escaping.t
@@ -17,6 +17,7 @@ if ($gpg_version = `gpg --version`) {
}
my $gpg_args = ["--no-default-keyring",
+ "--quiet",
"--keyring=$Bin/data/pubring-test.gpg",
"--secret-keyring=$Bin/data/secring-test.gpg"];
--
1.7.0.5
More information about the brackup
mailing list