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 31E776DE20FB for ; Sun, 26 Feb 2017 05:43:42 -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_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 fsk5gV9fhzTn for ; Sun, 26 Feb 2017 05:43:41 -0800 (PST) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by arlo.cworth.org (Postfix) with ESMTPS id A1ED86DE20E8 for ; Sun, 26 Feb 2017 05:43:38 -0800 (PST) Received: by mail-lf0-f68.google.com with SMTP id i17so708582lfe.3 for ; Sun, 26 Feb 2017 05:43:38 -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=F/MuWFPkREKBnfSdSfPrbSglg9QvhJUMpy8D3ChnYw8=; b=0Ki6GQgl1RoPsZXifF79AEqcc6thLEdDGLaCnvLZ7XzL3EI5k/foF7NVc7xz5KEW3o xaTrSaqiSwFkIybU7480jqKarWYzPWColgHzpoGBQvf39UZh+f7zix07zfXWZBK4SMnt 1QXKk3olji1cFxNEO9a69yRTe4kv9VwHNiQFBKUD3l/EDRUaK/jWS/dh9mGh5eB7JYCD VrQRZviiQZgzSOovdGJDOA5sQS880I65jsaSYyORwuw6BqpV5Q6+weFtMBCCCkK2HSI8 0RSdHpfQIC+CDDmqwAjzy0LTW9od1811DMFehMqjbJZZmSBJMy60enuSinfkHuo2GQVs xrqg== 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=F/MuWFPkREKBnfSdSfPrbSglg9QvhJUMpy8D3ChnYw8=; b=h9PFb4vTksiEfxoRzTLX5WQJHNSMcjUSl6nJqkLAjm4GfV5AFn8d+rFHEcng4hl75T ZPibOsSP6QfuJHah0zxtIzEOnbStmgzkDuXm6EyLJCajrRq1di6kuGT1wRbMLhP4mO04 voF21pYS1xDOEhGcWmtfwbJeTzKGRnmxC74ZUBr8s5Gnfo8beKoDSvroiGeQO8T5QSTk 7GUkXjgqjx8iiyq2PKX2ynVC/RkY6C7V74rA/xaK2LI/e7MNxAJwfxCymhnZaVWUsnNt DMU+2Ek5oXcO0tbvjQG4jCbEdyqzacaZdVkzIo6AY1rnIqHOdcyxt+LzXWxn79ffK1+B 0cpA== X-Gm-Message-State: AMke39kHmjv/8aHORzF0NGR0DI+Z/EqEL4NATChaplYGneAWhyefVSfTIVxa1lpRRUh9AA== X-Received: by 10.25.74.146 with SMTP id x140mr3533983lfa.67.1488116617079; Sun, 26 Feb 2017 05:43:37 -0800 (PST) Received: from localhost (mobile-access-bcee80-14.dhcp.inet.fi. [188.238.128.14]) by smtp.gmail.com with ESMTPSA id e13sm1600598lfb.14.2017.02.26.05.43.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 Feb 2017 05:43:36 -0800 (PST) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 9/9] test: require test_begin_subtest before test_expect_code Date: Sun, 26 Feb 2017 15:43:01 +0200 Message-Id: <4e884b3b32400e88dae0c7f86b7f7bec6d9583a1.1488116461.git.jani@nikula.org> 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:42 -0000 Unify the subtests by requiring test_begin_subtest before test_expect_code. (Similar change for test_expect_success has already been done.) 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 | 5 +++++ test/T000-basic.sh | 11 ++++------- test/T020-compact.sh | 3 ++- test/T050-new.sh | 4 ++-- test/T070-insert.sh | 34 ++++++++++++++++++++-------------- test/T150-tagging.sh | 13 +++++++++---- test/T160-json.sh | 8 ++++---- test/T400-hooks.sh | 14 ++++++++------ test/T570-revision-tracking.sh | 16 ++++++++-------- test/T600-named-queries.sh | 4 ++-- test/test-lib.sh | 18 +++++++++++------- 11 files changed, 75 insertions(+), 55 deletions(-) diff --git a/test/README b/test/README index 7acdb4b81f4d..dcd05237a062 100644 --- a/test/README +++ b/test/README @@ -200,6 +200,11 @@ library for your script to use.