From: Dmitry Kurochkin Date: Sun, 27 Nov 2011 18:36:19 +0000 (+0400) Subject: test: fix "Stashing in notmuch-search" test when emacs is not available X-Git-Tag: 0.11_rc1~85 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=6cb61729d46335b5ad6ee5e2f618b48fbabda218 test: fix "Stashing in notmuch-search" test when emacs is not available If emacs is not available, test_expect_equal would be called with only one argument. The patch fixes this by quoting the (possibly empty) $(cat OUTPUT) argument. --- diff --git a/test/emacs b/test/emacs index 198c27b0..3f8c72d3 100755 --- a/test/emacs +++ b/test/emacs @@ -412,7 +412,7 @@ test_emacs '(notmuch-search "id:\"bought\"") (yank) (test-output)' sed -i -e 's/^thread:.*$/thread:XXX/' OUTPUT -test_expect_equal $(cat OUTPUT) "thread:XXX" +test_expect_equal "$(cat OUTPUT)" "thread:XXX" test_begin_subtest 'Hiding message following HTML part' test_subtest_known_broken