From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin-apps@cygwin.com
Subject: Re: cygport test has zero exit status on failures
Date: Wed, 19 May 2021 09:05:32 +0200 [thread overview]
Message-ID: <50c37d50-1965-50cb-feb9-f386ab0b1374@gmail.com> (raw)
In-Reply-To: <87y2cbcnhi.fsf@Otto.invalid>
On 19.05.2021 07:16, ASSI wrote:
> Jason Pyeron writes:
>
>> In any case the all or all-test does not execute the test step, so the
>> customization of the src_test does not impact the default behaviors.
>
> That's beside the point. We were only talking about the test behaviours
> or at least I was, anyway. Now again, if you do that in the cygport
> file you mix that expectation of getting a return value (that really
> comes from the way you run cygport in the CI and determine the test
> status) with the package definition. If you force that to satisfy your
> CI requirements, you also break the flow for folks who (as an example)
> rather do
>
> cygport $p finish prep compile inst test pkg
>
> because a test fail would now error out before getting to the packaging
> step. Which is why I was musing that your preference in how to treat a
> test fail should really be injected from the run-time environment rather
> than the package definition. Once that mechanism is in place I can also
> start writing my own src_test functions that switch their behaviour
> depending on that setting so that these package definitions would work
> in either environment.
in general a generic test failure is not a valid reason to NOT package.
Most of my packages have peculiar test failures that can be just ignored
In several, I just use "cygmake -i check" in src_test
to avoid premature stop of the tests.
Others requires to be installed before the testsuite is
properly executed.
> Regards,
> Achim.
Regards
Marco
next prev parent reply other threads:[~2021-05-19 7:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-09 21:12 Jason Pyeron
2021-05-10 5:06 ` ASSI
2021-05-17 22:29 ` Jason Pyeron
2021-05-18 4:36 ` ASSI
2021-05-18 19:17 ` Jason Pyeron
2021-05-18 20:16 ` Achim Gratz
2021-05-18 20:57 ` Jason Pyeron
2021-05-19 5:16 ` ASSI
2021-05-19 7:05 ` Marco Atzeri [this message]
2021-05-19 16:32 ` Jason Pyeron
2021-05-19 17:14 ` Achim Gratz
2021-05-19 17:24 ` Marco Atzeri
2021-05-19 17:30 ` Achim Gratz
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=50c37d50-1965-50cb-feb9-f386ab0b1374@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin-apps@cygwin.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).