mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: ruby: simplify MAIL_DIR check
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
a75a9a5aed
commit
c1b99d6f94
1 changed files with 1 additions and 4 deletions
|
@ -12,10 +12,7 @@ test_ruby() {
|
||||||
(
|
(
|
||||||
cat <<-\EOF
|
cat <<-\EOF
|
||||||
require 'notmuch'
|
require 'notmuch'
|
||||||
$maildir = ENV['MAIL_DIR']
|
$maildir = ENV['MAIL_DIR'] || abort('MAIL_DIR not set')
|
||||||
if not $maildir then
|
|
||||||
abort('environment variable MAIL_DIR must be set')
|
|
||||||
end
|
|
||||||
@db = Notmuch::Database.new($maildir)
|
@db = Notmuch::Database.new($maildir)
|
||||||
EOF
|
EOF
|
||||||
cat
|
cat
|
||||||
|
|
Loading…
Reference in a new issue