-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'make minitest' non-zero error code ignored #16160
Comments
From @jkeenanAs documented in https://rt-archive.perl.org/perl5/Ticket/Display.html?id=132138, I stumbled upon this by accident today. Following up on a discussion on ##### ... (where 'regular_configure' is a shell script that, on FreeBSD, ##### I guessed that if 'make minitest' were to FAIL, then 'make test_harness' I sat watching the terminal and thought I saw a test failure during So I then cleaned the directory, re-configured and then said 'make ##### Ignoring this error code, IMO, diminishes the value of 'make minitest' Is there a rationale for ignoring this error code? If not, what is the recommended fix? Thank you very much. |
From @jkeenanSummary of my perl5 (revision 5 version 27 subversion 4) configuration: Characteristics of this binary (from libperl): |
From @tonycozOn Wed, 20 Sep 2017 16:33:32 -0700, jkeenan@pobox.com wrote:
minitest has ignored errors since it was introduced in 16d20bd: commit 16d20bd This is my patch patch.1i for perl5.001. Inline Patchdiff --git a/Makefile.SH b/Makefile.SH
index f5dff60..cdd6333 100644
--- a/Makefile.SH
+++ b/Makefile.SH
+ - cd t && chmod +x TEST */*.t + - cd t && (rm -f perl; $(LNS) ../miniperl perl) \ + && ./perl TEST base/*.t comp/*.t cmd/*.t io/*.t op/*.t </dev/tty + clist: $(c) echo $(c) | tr ' ' '\012' >.clist Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @jkeenanOn Thu, 21 Sep 2017 00:47:45 GMT, tonyc wrote:
So, on the one hand, I would argue, it does not DWIM for the purpose for which it is recommended in pod/perlgit.pod and by commenters on list today. On the other hand, to change that situation would require changing the way it has worked for 22 years (and I'm always inclined to trust Andy D's judgment). I'm inclined to the first hand. I want to use it in a string of commands and I want that string to fail if and when 'make minitest' fails. Otherwise I'm inclined to never use it. Thank you very much. |
From @doughera88On Wed, Sep 20, 2017 at 06:54:20PM -0700, James E Keenan via RT wrote:
While I appreciate the thought, I don't recall exercising any judgment -- |
From @jkeenanOn Thu, 21 Sep 2017 02:25:47 GMT, doughera wrote:
It turns out that having 'make' take the exit status of 'make minitest' into consideration is very simple; see patch attached. However, I want to re-read all references to 'minitest' in the core distro and to allow time for other people to comment. Thank you very much. -- |
From @jkeenan132139-minitest.diffdiff --git a/Makefile.SH b/Makefile.SH
index 730dcca..b0f0d9d 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1631,15 +1631,15 @@ minitest_prep:
@echo "You may see some irrelevant test failures if you have been unable"
@echo "to build lib/Config.pm, or the Unicode data files."
@echo " "
- - cd t && (rm -f $(PERL_EXE); $(LNS) ../$(MINIPERL_EXE) $(PERL_EXE))
+ cd t && (rm -f $(PERL_EXE); $(LNS) ../$(MINIPERL_EXE) $(PERL_EXE))
MINITEST_TESTS = base/*.t comp/*.t cmd/*.t run/*.t io/*.t re/*.t opbasic/*.t op/*.t uni/*.t perf/*.t
minitest: $(MINIPERL_EXE) minitest_prep
- - cd t && $(RUN_PERL) TEST $(MINITEST_TESTS) <$(devtty)
+ cd t && $(RUN_PERL) TEST $(MINITEST_TESTS) <$(devtty)
minitest-notty minitest_notty: $(MINIPERL_EXE) minitest_prep
- - cd t && PERL_SKIP_TTY_TEST=1 $(RUN_PERL) TEST $(MINITEST_TESTS)
+ cd t && PERL_SKIP_TTY_TEST=1 $(RUN_PERL) TEST $(MINITEST_TESTS)
# Test via harness
|
In pipelines like: $ sh ./Configure -des -Dusedevel && \ make minitest && make test_harness ... we don't want to run 'make test_harness' unless 'make minitest' has succeeded. To test: $ echo "exit(1);" >> t/base/cond.t $ make minitest && echo "hello world" # [note that minitest fails quickly and 'echo' is not reached] $ git checkout -- t/base/cond.t $ make minitest && echo "hello world" # [note that minitest runs and 'echo' is reached] For: #16160 Originally: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=132139
In pipelines like: $ sh ./Configure -des -Dusedevel && \ make minitest && make test_harness ... we don't want to run 'make test_harness' unless 'make minitest' has succeeded. To test: $ echo "exit(1);" >> t/base/cond.t $ make minitest && echo "hello world" # [note that minitest fails quickly and 'echo' is not reached] $ git checkout -- t/base/cond.t $ make minitest && echo "hello world" # [note that minitest runs and 'echo' is reached] For: #16160 Originally: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=132139
This ticket should have been closed in February 2020 when the following commit was applied:
Closing now. |
Migrated from rt.perl.org#132139 (status was 'open')
Searchable as RT132139$
The text was updated successfully, but these errors were encountered: