Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 77CA0429E21 for ; Mon, 2 Jan 2012 06:51:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DAp3A-zls9MJ for ; Mon, 2 Jan 2012 06:51:44 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 04140431FD0 for ; Mon, 2 Jan 2012 06:51:43 -0800 (PST) Received: by wgbds13 with SMTP id ds13so22064015wgb.2 for ; Mon, 02 Jan 2012 06:51:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=UwvN2C0kcy+yUeoDK8d60+VcmzNXm4cp0h/xXnJ6yW8=; b=evyx8Kp5gcl6QCMH+wCLMRKG16maCLD1JAuZSIG4EJ9rG2/l1EM2uOiTR0BkGOoGq8 xjtIzQ5/wF0/G/K4/kvtG3/Jt1gZAPDkzuqUcb2mqpDvTmxuPP9h6gVDVyNhf5Pdir2t 63ydWutZTRd26n8WiD7qHDHH4o1BZbrh+/5wQ= Received: by 10.227.206.209 with SMTP id fv17mr1031949wbb.19.1325515902518; Mon, 02 Jan 2012 06:51:42 -0800 (PST) Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com. [82.41.10.37]) by mx.google.com with ESMTPS id ei9sm118532513wid.0.2012.01.02.06.51.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Jan 2012 06:51:41 -0800 (PST) From: Patrick Totzke To: notmuch@notmuchmail.org Subject: [PATCH 1/2] clean up "compare thread ids" python test Date: Mon, 2 Jan 2012 14:51:26 +0000 Message-Id: <1325515887-15201-1-git-send-email-patricktotzke@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <20120102144722.18163.37346@brick.lan> References: <20120102144722.18163.37346@brick.lan> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 14:51:46 -0000 This makes the test script open the database in READ_ONLY mode and use the libraries own sorting methods instead of "sort". --- test/python | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/python b/test/python index c3aa726..c318cc1 100755 --- a/test/python +++ b/test/python @@ -7,11 +7,12 @@ add_email_corpus test_begin_subtest "compare thread ids" test_python < EXPECTED -test_expect_equal_file <(sort OUTPUT) EXPECTED +notmuch search --sort=oldest-first --output=threads tag:inbox | sed s/^thread:// > EXPECTED +test_expect_equal_file OUTPUT EXPECTED test_done -- 1.7.5.4