]> git.notmuchmail.org Git - notmuch/commit
test: new: Fix intermittent test failures with --debug
authorEthan Glasser-Camp <ethan.glasser.camp@gmail.com>
Sun, 21 Oct 2012 13:14:58 +0000 (09:14 -0400)
committerDavid Bremner <bremner@debian.org>
Mon, 22 Oct 2012 23:04:15 +0000 (20:04 -0300)
commit0d552ab6d0d9f7783d5f3cd0a246243c91090d49
tree8f24bdfac41967ac9d0bde3928307a50133eb16e
parentb7f7b573e4bf3d00d9e887bc1aee264722d22778
test: new: Fix intermittent test failures with --debug

Although messages are created in a particular order, it seems that
when they are created on a tmpfs, they do not always come back in the
same order, leading to the same files being ignored but being output
in a different order. This causes the test to fail because the outputs
being compared are the same.

Fix the failures by sorting the output of notmuch --debug and
comparing this to a hand-sorted version of its output.

Signed-off-by: Ethan Glasser-Camp <ethan@betacantrips.com>
test/new