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

Re: [PATCH] t0050: remove the unused $test_case variable

From
Johannes Sixt <j6t@kdbg.org>
Date
Feb 7, 2018, 07:20 UTC
Message-ID
<bf3ad52d-4aa3-8678-9466-3996f6cba11c@kdbg.org>
In-Reply-To
<20180206231303.8483-1-avarab@gmail.com>
Am 07.02.2018 um 00:13 schrieb Ævar Arnfjörð Bjarmason:
Show 6 quoted lines
> The $test_case variable hasn't been used since
> decd3c0c28 ("t0050-*.sh: mark the rename (case change) test as
> passing", 2014-11-28) when its last user went away.
> 
> Let's remove the "say" as well, since it's obvious from subsequent
> output that we're testing on a case sensitive filesystem.

Am I misunderstanding the message? I think it reports properties of the test environment. And the tests do run on case-insensitive filesystems. IMO, the message should be kept.

Show 26 quoted lines
> 
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
> ---
>   t/t0050-filesystem.sh | 8 --------
>   1 file changed, 8 deletions(-)
> 
> diff --git a/t/t0050-filesystem.sh b/t/t0050-filesystem.sh
> index b29d749bb7..606ffddd92 100755
> --- a/t/t0050-filesystem.sh
> +++ b/t/t0050-filesystem.sh
> @@ -7,14 +7,6 @@ test_description='Various filesystem issues'
>   auml=$(printf '\303\244')
>   aumlcdiar=$(printf '\141\314\210')
>   
> -if test_have_prereq CASE_INSENSITIVE_FS
> -then
> -	say "will test on a case insensitive filesystem"
> -	test_case=test_expect_failure
> -else
> -	test_case=test_expect_success
> -fi
> -
>   if test_have_prereq UTF8_NFD_TO_NFC
>   then
>   	say "will test on a unicode corrupting filesystem"
> 
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 2 of 5 in “t0050: remove the unused $test_case variable”
  1. t0050: remove the unused $test_case variableÆvar Arnfjörð Bjarmason, Feb 6, 2018
  2. Johannes SixtFeb 7, 2018
  3. Ævar Arnfjörð BjarmasonFeb 7, 2018
  4. Johannes SixtFeb 7, 2018
  5. Ævar Arnfjörð BjarmasonFeb 7, 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.