unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] test: remove "Generate some messages" test from raw
@ 2012-01-30 22:06 Dmitry Kurochkin
  2012-01-30 22:06 ` [PATCH 2/2] test: use subtest name for generated message subject by default Dmitry Kurochkin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dmitry Kurochkin @ 2012-01-30 22:06 UTC (permalink / raw)
  To: notmuch

Before the change, the first subtest in raw format tests just
generated messages and checked that they are added successfully.  This
is not really a raw format test, it is creating of environment
required for other subtests to run.  The patch removes the first
subtest from raw and replaces it with bare add_message calls, similar
to how it is done in other tests.

TODO: we should check that test environment was created successfully.
Currently, many tests do add_message(), notmuch new and other calls
without checking the results.  We should come up with a general
solution for this, i.e. if any command during test initialization
fails, all tests should be skipped with appropriate error message.
---
 test/raw |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/test/raw b/test/raw
index 0171e64..de0b867 100755
--- a/test/raw
+++ b/test/raw
@@ -3,11 +3,8 @@
 test_description='notmuch show --format=raw'
 . ./test-lib.sh
 
-test_begin_subtest "Generate some messages"
-generate_message
-generate_message
-output=$(NOTMUCH_NEW)
-test_expect_equal "$output" "Added 2 new messages to the database."
+add_message
+add_message
 
 test_begin_subtest "Attempt to show multiple raw messages"
 output=$(notmuch show --format=raw "*" 2>&1)
-- 
1.7.8.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-03-18 12:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30 22:06 [PATCH 1/2] test: remove "Generate some messages" test from raw Dmitry Kurochkin
2012-01-30 22:06 ` [PATCH 2/2] test: use subtest name for generated message subject by default Dmitry Kurochkin
2012-03-09  8:24   ` Jani Nikula
2012-02-15 18:33 ` [PATCH 1/2] test: remove "Generate some messages" test from raw Dmitry Kurochkin
2012-03-01 23:09   ` Dmitry Kurochkin
2012-03-10  1:24 ` [PATCH v2 0/2] test: use subtest name for generated message subject Dmitry Kurochkin
2012-03-10  1:24   ` [PATCH v2 1/2] test: remove "Generate some messages" test from raw Dmitry Kurochkin
2012-03-10  1:24   ` [PATCH v2 2/2] test: use subtest name for generated message subject by default Dmitry Kurochkin
2012-03-18 12:50   ` [PATCH v2 0/2] test: use subtest name for generated message subject David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).