[PATCH 8/8] t/README: Document the dangers of printing "ok" / "not ok"
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jul 1, 2010, 15:10 UTC
- Message-ID
- <1277997004-29504-9-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1277997004-29504-1-git-send-email-avarab@gmail.com>
A TAP harness will get confused if you print "ok" or "not ok" at the beginning of a line. This had to be fixed in 335f87871fe5aa6b3fd55b2b4e80f16fe9681483 when TAP support was introduced.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- t/README | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/t/README b/t/README index 42a4c25..29f795e 100644 --- a/t/README +++ b/t/README @@ -50,6 +50,12 @@ prove and other harnesses come with a lot of useful options. The # Repeat until no more failures $ prove -j 15 --state=failed,save ./t[0-9]*.sh +The TAP support is completely incidental. A TAP harness is just a +program that interprets the "ok"/"not ok" (and some other strings) in +a special way. The only limitation this imposes is that you shouldn't +echo "ok" or "not ok" by yourself at the beginning of a line, that'll +confuse the TAP harness. + You can also run each test individually from command line, like this: $ ./t3010-ls-files-killed-modified.sh
-- 1.7.1.251.g92a7