From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id CA1506DE20D0 for ; Sun, 26 Feb 2017 05:43:39 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" X-Spam-Flag: NO X-Spam-Score: -0.176 X-Spam-Level: X-Spam-Status: No, score=-0.176 tagged_above=-999 required=5 tests=[AWL=-0.156, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JsO8EdczZ1J9 for ; Sun, 26 Feb 2017 05:43:38 -0800 (PST) Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) by arlo.cworth.org (Postfix) with ESMTPS id 7C7CF6DE20D6 for ; Sun, 26 Feb 2017 05:43:36 -0800 (PST) Received: by mail-lf0-f65.google.com with SMTP id j2so4420356lfe.0 for ; Sun, 26 Feb 2017 05:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=k1U2OjlgrNAVzHP0iR2QlbLxJYD9Mq57owEjmdFg/vM=; b=rLoyFwvpvUghrhMgE6O0BOMIPpLUn9Z+HlfifVGtBWwNnTrpPxLC/U3rEoyYVcvhXH 3SHmCYq7WU+0vIhvD/AM8BrHWur3+XlJ5YJY8XuMe56OhROj6Sbig1lVd3FsMv/B+rvo zgNESXbhiIvmp/VbndnCyvlfVckbGu8xZ5Rp6Wd3wAwQvEBjQ33FT0UVyT97b9K0XbnX jmiv0IXIxODyHcrjdyBcGYmwIZMTmwBM4cCb1Ijf2vYpDJSdnbHZnr6YJLA0oTrqztAn XBSnfanfDIA2Rj3yFGUfGpvSqIpxQw+bWp3D0nYIXNlOUSx0urDQAsrlgD7uifcRITKO /vSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=k1U2OjlgrNAVzHP0iR2QlbLxJYD9Mq57owEjmdFg/vM=; b=JMyzNRYt+Xfmxt7Koz+K9e8M2Nd+NQKay+yzTijBjLkHJz7J0yEtODZNzMFMcJCWeo iuli5LN70jz+ZWJkXhT5I0qYryrt/EXETj+BWaDTgPsUYIdbPydczWCQwyL1zLEhxm3z EAI9Y0NC6bruM10PRWKrCg3HWowT64aKsNofLvtirbwaIrUuAQmMZ/de1PnHQvc+h4dN 3k6YAjQb43spF708LCgExMTwP5I9qcOguCTLhoDpqIksgdnRu6TPcgkxdaOR5oxSXZif /NhF/adWfa/HnFGvTr1mgFeh0FsUE1qTAHXdfrwfIWwx3BMM9qz/qd/GSfSmx1CkrOp0 TcRg== X-Gm-Message-State: AMke39nb9910IG6LU4928kdfIpAvTfe+aJTv9cmE+ENq9ckVLlkmcmPn/KTw6sJfG+256g== X-Received: by 10.46.21.88 with SMTP id 24mr2882151ljv.101.1488116614903; Sun, 26 Feb 2017 05:43:34 -0800 (PST) Received: from localhost (mobile-access-bcee80-14.dhcp.inet.fi. [188.238.128.14]) by smtp.gmail.com with ESMTPSA id v3sm9903595ljd.65.2017.02.26.05.43.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2017 05:43:34 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 8/9] test: require test_begin_subtest before test_expect_success Date: Sun, 26 Feb 2017 15:43:00 +0200 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sun, 26 Feb 2017 13:43:39 -0000 Unify the subtests by requiring test_begin_subtest before test_expect_success. (Similar change for test_expect_code will follow.) This increases clarity in the test scripts by having a separate line for the start of the subtest with the heading, and makes it possible to simplify the test infrastructure by making all subtests similar. --- test/README | 14 +++++++------- test/T000-basic.sh | 33 +++++++++++++-------------------- test/T010-help-test.sh | 27 ++++++++++++++++++--------- test/T020-compact.sh | 7 ++++--- test/T190-multipart.sh | 20 ++++++++------------ test/T240-dump-restore.sh | 33 ++++++++++++++++++++------------- test/T310-emacs.sh | 9 ++++----- test/T340-maildir-sync.sh | 6 ++++-- test/T350-crypto.sh | 9 ++++++--- test/T355-smime.sh | 6 ++++-- test/T380-atomicity.sh | 3 ++- test/T400-hooks.sh | 4 ++-- test/T530-upgrade.sh | 5 +++-- test/T560-lib-error.sh | 3 ++- test/T570-revision-tracking.sh | 16 ++++++++-------- test/T600-named-queries.sh | 8 ++++---- test/test-lib.sh | 18 +++++++++++------- test/test-verbose | 6 ++++-- 18 files changed, 124 insertions(+), 103 deletions(-) diff --git a/test/README b/test/README index 104a120ea28b..7acdb4b81f4d 100644 --- a/test/README +++ b/test/README @@ -189,17 +189,17 @@ Test harness library There are a handful helper functions defined in the test harness library for your script to use. - test_expect_success