Re: [PATCH] test: new: Fix intermittent test failures with --debug

Subject: Re: [PATCH] test: new: Fix intermittent test failures with --debug

Date: Sun, 21 Oct 2012 22:18:52 -0700

To: Ethan Glasser-Camp, notmuch@notmuchmail.org

Cc:

From: Jameson Graef Rollins


On Sun, Oct 21 2012, Ethan Glasser-Camp <ethan.glasser.camp@gmail.com> wrote:
> 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.

This seems to fix a failing test that I'm seeing right now, at least in
the couple of times that I've re-run the tests after applying this
patch.

jamie.
part-000.sig (application/pgp-signature)

Thread: