git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/5] t/README: modernize description of GIT_SKIP_TESTS

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 27, 2018, 22:54 UTC
Message-ID
<20181127225445.30045-2-avarab@gmail.com>
In-Reply-To
<20181127225445.30045-1-avarab@gmail.com>

When the GIT_SKIP_TESTS documentation was added in fbd458a3f6 ("t/README: Add 'Skipping Tests' section below 'Running Tests'", 2008-06-20) there was no way to declare test prerequisites, that came later in a7bb394037 ("test-lib: Infrastructure to test and check for prerequisites", 2009-03-01).

The docs were newer updated, and have been saying that you might want to use GIT_SKIP_TESTS for a use-case which we'd never use them for, skipping tests because 'unzip' isn't there. For that we'd use the UNZIP prerequisite added in 552a26c8c0 ("Use prerequisites to skip tests that need unzip", 2009-03-16). Fix the docs accordingly.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 t/README | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/t/README b/t/README
index b6ec28f634..3139f4330a 100644
--- a/t/README
+++ b/t/README
@@ -202,20 +202,21 @@ GIT_TEST_EXEC_PATH defaults to `$GIT_TEST_INSTALLED/git --exec-path`.
 Skipping Tests
 --------------
 
-In some environments, certain tests have no way of succeeding
-due to platform limitation, such as lack of 'unzip' program, or
-filesystem that do not allow arbitrary sequence of non-NUL bytes
-as pathnames.
+Certain tests may fail intermittently or entirely. These should
+ideally be reported as bugs and fixed, or guarded by a prerequisite
+(see "Using test prerequisites" below). But until then they can be
+skipped.
 
-You should be able to say something like
+To skip tests, set the GIT_SKIP_TESTS variable. Individual tests can
+be skipped:
 
     $ GIT_SKIP_TESTS=t9200.8 sh ./t9200-git-cvsexport-commit.sh
 
-and even:
+Or tests matching a glob:
 
     $ GIT_SKIP_TESTS='t[0-4]??? t91?? t9200.8' make
 
-to omit such tests.  The value of the environment variable is a
+The value of the environment variable is a
 SP separated list of patterns that tells which tests to skip,
 and either can match the "t[0-9]{4}" part to skip the whole
 test, or t[0-9]{4} followed by ".$number" to say which
-- 
2.20.0.rc1.379.g1dd7ef354c
Previous: SZEDER Gábor
Message 7 of 7 in “t/README: make the 'Skipping tests' section less confusing”
  1. 1/5 t/README: make the 'Skipping tests' section less confusingÆvar Arnfjörð Bjarmason, Nov 27, 2018
  2. 3/5 t/README: re-flow a paragraphÆvar Arnfjörð Bjarmason, Nov 27, 2018
  3. 4/5 test-lib: add more exhaustive GIT_SKIP_TESTS testingÆvar Arnfjörð Bjarmason, Nov 27, 2018
  4. 5/5 test-lib: add support for GIT_TODO_TESTSÆvar Arnfjörð Bjarmason, Nov 27, 2018
  5. Junio C HamanoNov 29, 2018
  6. SZEDER GáborDec 4, 2018
  7. 2/5 t/README: modernize description of GIT_SKIP_TESTSÆvar Arnfjörð Bjarmason, Nov 27, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.