krb5 commit: Add skiptests notification for Python scripts

Greg Hudson ghudson at mit.edu
Thu Jul 28 12:38:09 EDT 2016


https://github.com/krb5/krb5/commit/f1cc7a37a622a148e77f5df959079a233cddd117
commit f1cc7a37a622a148e77f5df959079a233cddd117
Author: Greg Hudson <ghudson at mit.edu>
Date:   Tue Jul 26 14:24:44 2016 -0400

    Add skiptests notification for Python scripts
    
    If Python 2.5 or later is not found, add a notice to the skiptests
    file to alert the user that Python test scripts were skipped.
    
    Move the "cat $(SKIPTESTS)" command from check-postrecurse to
    check-unix so that it executes after check-pytests-yes or
    check-pytests-no.

 src/Makefile.in |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index 08c05d3..b5622e1 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -543,9 +543,13 @@ check-prerecurse: runenv.py
 	$(RM) $(SKIPTESTS)
 	touch $(SKIPTESTS)
 
-check-postrecurse:
+check-unix:
 	cat $(SKIPTESTS)
 
+check-pytests-no: check-postrecurse
+	@echo 'Skipped python test scripts: python 2.5 or later required' >> \
+		$(SKIPTESTS)
+
 # Create a test realm and spawn a shell in an environment pointing to it.
 # If CROSSNUM is set, create that many fully connected test realms and
 # point the shell at the first one.


More information about the cvs-krb5 mailing list