mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 15:43:11 +01:00
test: ruby: simplify MAIL_DIR initialization
There's no need to complicate the script passing the MAIL_DIR environment variable. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
c1b99d6f94
commit
9f6bc01824
1 changed files with 3 additions and 4 deletions
|
@ -10,13 +10,12 @@ add_email_corpus
|
||||||
|
|
||||||
test_ruby() {
|
test_ruby() {
|
||||||
(
|
(
|
||||||
cat <<-\EOF
|
cat <<-EOF
|
||||||
require 'notmuch'
|
require 'notmuch'
|
||||||
$maildir = ENV['MAIL_DIR'] || abort('MAIL_DIR not set')
|
@db = Notmuch::Database.new('$MAIL_DIR')
|
||||||
@db = Notmuch::Database.new($maildir)
|
|
||||||
EOF
|
EOF
|
||||||
cat
|
cat
|
||||||
) | MAIL_DIR=$MAIL_DIR $NOTMUCH_RUBY -I "$NOTMUCH_BUILDDIR/bindings/ruby"> OUTPUT
|
) | $NOTMUCH_RUBY -I "$NOTMUCH_BUILDDIR/bindings/ruby"> OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
test_begin_subtest "compare thread ids"
|
test_begin_subtest "compare thread ids"
|
||||||
|
|
Loading…
Add table
Reference in a new issue