From: Karl Hasselström Date: Sun, 23 Sep 2007 23:55:33 GMT Subject: [StGit PATCH] New policy: Only use test_expect_failure for broken tests Message-ID: <20070923235239.26457.939.stgit@yoghurt> 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 --- 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