From 5f594e90e9a0867e1b87ffb8b0a077152246b56c Mon Sep 17 00:00:00 2001 Message-Id: <5f594e90e9a0867e1b87ffb8b0a077152246b56c.1715238750.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 23 Sep 2007 14:18:50 +0200 Subject: [PATCH] New policy: Only use test_expect_failure for broken tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Organization: Straylight/Edgeware From: Karl Hasselström 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öm --- 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