From: Junio C Hamano <gitster@pobox.com>
To: Pablo Sabater <pabloosabaterr@gmail.com>
Cc: git@vger.kernel.org, christian.couder@gmail.com,
karthik.188@gmail.com, jltobler@gmail.com,
ayu.chandekar@gmail.com, siddharthasthana31@gmail.com,
chandrapratap3519@gmail.com
Subject: Re: [GSoC PATCH] t9200: handle missing CVS with skip_all
Date: Wed, 11 Mar 2026 12:49:34 -0700 [thread overview]
Message-ID: <xmqqy0jym9ip.fsf@gitster.g> (raw)
In-Reply-To: <20260311194002.190195-1-pabloosabaterr@gmail.com> (Pablo Sabater's message of "Wed, 11 Mar 2026 20:40:02 +0100")
Pablo Sabater <pabloosabaterr@gmail.com> writes:
> CVS initialization runs outside a test_expect_success and when it
> fails, the error report isn't good.
>
> Wrap CVS initialization in a skip_all check so when CVS initialization
> fails, the error report becomes clearer.
>
> Move the Git repo initialization into its own test_expect_success instead
> of being in the same CVS check.
>
> Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com>
> ---
> t/t9200-git-cvsexportcommit.sh | 18 +++++++++++-------
> 1 file changed, 11 insertions(+), 7 deletions(-)
Makes sense. Will queue. Thanks.
> diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
> index a44eabf0d8..cba3b1a28a 100755
> --- a/t/t9200-git-cvsexportcommit.sh
> +++ b/t/t9200-git-cvsexportcommit.sh
> @@ -30,13 +30,17 @@ export CVSROOT CVSWORK GIT_DIR
>
> rm -rf "$CVSROOT" "$CVSWORK"
>
> -cvs init &&
> -test -d "$CVSROOT" &&
> -cvs -Q co -d "$CVSWORK" . &&
> -echo >empty &&
> -git add empty &&
> -git commit -q -a -m "Initial" 2>/dev/null ||
> -exit 1
> +if ! cvs init || ! test -d "$CVSROOT" || ! cvs -Q co -d "$CVSWORK" .
> +then
> + skip_all="cvs repository set-up fails"
> + test_done
> +fi
> +
> +test_expect_success 'git setup' '
> + echo >empty &&
> + git add empty &&
> + git commit -q -a -m Initial
> +'
>
> check_entries () {
> # $1 == directory, $2 == expected
prev parent reply other threads:[~2026-03-11 19:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 19:40 [GSoC PATCH] t9200: handle missing CVS with skip_all Pablo Sabater
2026-03-11 19:49 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqy0jym9ip.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=ayu.chandekar@gmail.com \
--cc=chandrapratap3519@gmail.com \
--cc=christian.couder@gmail.com \
--cc=git@vger.kernel.org \
--cc=jltobler@gmail.com \
--cc=karthik.188@gmail.com \
--cc=pabloosabaterr@gmail.com \
--cc=siddharthasthana31@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox