From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl =?utf-8?q?Hasselstr=C3=B6m?= Subject: [StGit PATCH] New policy: Only use test_expect_failure for broken tests Date: Mon, 24 Sep 2007 01:55:33 +0200 Message-ID: <20070923235239.26457.939.stgit@yoghurt> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org, Karl =?utf-8?q?Hasselstr=C3=B6m?= To: Catalin Marinas X-From: git-owner@vger.kernel.org Mon Sep 24 01:55:44 2007 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZbIe-0006l8-5x for gcvg-git-2@gmane.org; Mon, 24 Sep 2007 01:55:44 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755162AbXIWXzi convert rfc822-to-quoted-printable (ORCPT ); Sun, 23 Sep 2007 19:55:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755052AbXIWXzi (ORCPT ); Sun, 23 Sep 2007 19:55:38 -0400 Received: from diana.vm.bytemark.co.uk ([80.68.90.142]:1908 "EHLO diana.vm.bytemark.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754787AbXIWXzh (ORCPT ); Sun, 23 Sep 2007 19:55:37 -0400 Received: from localhost ([127.0.0.1] helo=[127.0.1.1]) by diana.vm.bytemark.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 1IZbIT-0006Jw-00; Mon, 24 Sep 2007 00:55:33 +0100 User-Agent: StGIT/0.13 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: New policy for tests: * For subtests whose commands fail when the test succeeds, use test_expect_success and shell negation (!). test_expect_failure is to be used only for subtests that are known to be broken. * Patches that introduce a subtest failure must change that subtest to use test_expect_failure. The reason for this change is to ensure that the test suite passes at all times, even in the middle of disruptive rewrites spread over several commits. Signed-off-by: Karl Hasselstr=C3=B6m --- While rebasing David's conflict series on top of his new top/bottom removal series, I found it very irritating and time-consuming to deal with patches that intentionally broke the test suite. That won't happen again with this policy in place. t/README | 9 ++++----- t/t0001-subdir-branches.sh | 9 +++++---- t/t1000-branch-create.sh | 8 ++++---- t/t1001-branch-rename.sh | 4 ++-- t/t1002-branch-clone.sh | 4 ++-- t/t1200-push-modified.sh | 4 ++-- t/t1202-push-undo.sh | 4 ++-- t/t2000-sync.sh | 8 ++++---- t/t2100-pull-policy-fetch.sh | 4 ++-- t/t2102-pull-policy-rebase.sh | 12 ++++++------ t/t2200-rebase.sh | 4 ++-- 11 files changed, 35 insertions(+), 35 deletions(-) diff --git a/t/README b/t/README index d88bad2..77f0b6c 100644 --- a/t/README +++ b/t/README @@ -162,11 +162,10 @@ library for your script to use. This is the opposite of test_expect_success. If