summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@softwarelivre.org>2014-05-18 22:14:25 -0300
committerAntonio Terceiro <terceiro@softwarelivre.org>2014-05-18 22:15:35 -0300
commit706a52ea12976ab2b7892e21a97fff99fb6731b3 (patch)
tree889723c709937a4bf2204a54a82a774a639d44a2
parent471837eb27f37a736020f39f64e69a85305ae71d (diff)
downloadfeed2imap-706a52ea12976ab2b7892e21a97fff99fb6731b3.tar.gz
feed2imap-706a52ea12976ab2b7892e21a97fff99fb6731b3.tar.bz2
feed2imap-706a52ea12976ab2b7892e21a97fff99fb6731b3.zip
feed2imap-test: reuse cache dir/protect config
this reduces the noise in the output and helps testing feed updates
-rwxr-xr-xfeed2imap-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/feed2imap-test b/feed2imap-test
index 3216d88..b5e7390 100755
--- a/feed2imap-test
+++ b/feed2imap-test
@@ -6,7 +6,6 @@ require 'yaml'
base = File.expand_path(File.dirname(__FILE__))
tmp = File.join(base, 'tmp')
-FileUtils.rm_rf(tmp)
FileUtils.mkdir_p(tmp)
# target maildir
@@ -46,6 +45,7 @@ config = File.join(tmp, 'feed2imap.yaml')
File.open(config, 'w') do |f|
f.write(config_data)
end
+FileUtils.chmod 0600, config
unless system('ruby', "-I#{base}/lib", "#{base}/bin/feed2imap", '--config', config, '--verbose')
puts("E: feed2imap failed")