diff options
| author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-05-01 06:59:18 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-05-02 08:11:56 -0300 |
| commit | 9f6bc01824b3b5f77d577de152e4c98130552b26 (patch) | |
| tree | 6973976b0ff7e733a2f2586ec3b55d9137e97158 /test | |
| parent | c1b99d6f949bbbd0eef1f70baa2a02c1857093b2 (diff) | |
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>
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T395-ruby.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/T395-ruby.sh b/test/T395-ruby.sh index 94fab106..67d6e205 100755 --- a/test/T395-ruby.sh +++ b/test/T395-ruby.sh @@ -10,13 +10,12 @@ add_email_corpus test_ruby() { ( - cat <<-\EOF + cat <<-EOF require 'notmuch' - $maildir = ENV['MAIL_DIR'] || abort('MAIL_DIR not set') - @db = Notmuch::Database.new($maildir) + @db = Notmuch::Database.new('$MAIL_DIR') EOF 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" |
