chiark / gitweb /
New policy: Only use test_expect_failure for broken tests
authorKarl Hasselström <kha@treskal.com>
Sun, 23 Sep 2007 12:18:50 +0000 (14:18 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 23 Sep 2007 22:54:07 +0000 (00:54 +0200)
commit5f594e90e9a0867e1b87ffb8b0a077152246b56c
tree14ab8524dbc127b7a125d09cd297177ab1b87cb8
parentcbd2f5f3521bdac24e1dc43d85a4dcdccd55d4c6
New policy: Only use test_expect_failure for broken tests

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 <kha@treskal.com>
t/README
t/t0001-subdir-branches.sh
t/t1000-branch-create.sh
t/t1001-branch-rename.sh
t/t1002-branch-clone.sh
t/t1200-push-modified.sh
t/t1202-push-undo.sh
t/t2000-sync.sh
t/t2100-pull-policy-fetch.sh
t/t2102-pull-policy-rebase.sh
t/t2200-rebase.sh