[git] GPGME - branch, master, updated. gpgme-1.8.0-21-gb14419f

by Justus Winter cvs at cvs.gnupg.org
Tue Jan 3 15:34:54 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  b14419f68b3aaa90025e0e97151de7c3da7806fb (commit)
       via  d0e91d28f63b74e53673902e675be8a54b6b90d3 (commit)
      from  ececfd5de81f1851943be7b284b672d5b02aceb4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b14419f68b3aaa90025e0e97151de7c3da7806fb
Author: Justus Winter <justus at g10code.com>
Date:   Tue Jan 3 15:27:49 2017 +0100

    python: Improve compatibility with Scheme tests.
    
    * lang/python/tests/run-tests.py: Add stub --parallel option.
    
    Signed-off-by: Justus Winter <justus at g10code.com>

diff --git a/lang/python/tests/run-tests.py b/lang/python/tests/run-tests.py
index 3f9ece3..46c6d8c 100644
--- a/lang/python/tests/run-tests.py
+++ b/lang/python/tests/run-tests.py
@@ -51,6 +51,8 @@ parser.add_argument('--srcdir', type=str,
 parser.add_argument('--builddir', type=str,
                     default=os.environ.get("abs_builddir", ""),
                     help='Location of the tests.')
+parser.add_argument('--parallel', action="store_true", default=False,
+                    help='Ignored.  For compatibility with run-tests.scm.')
 
 args = parser.parse_args()
 if not args.interpreters:

commit d0e91d28f63b74e53673902e675be8a54b6b90d3
Author: Justus Winter <justus at g10code.com>
Date:   Wed Nov 30 10:39:25 2016 +0100

    python: Add a switch '--quiet' to the test runner.
    
    * lang/python/tests/run-tests.py: Add and honor a switch '--quiet'.
    This way we can use this script to run Python tests one by one without
    the noise, and the script will setup the necessary environment for us.
    
    Signed-off-by: Justus Winter <justus at g10code.com>

diff --git a/lang/python/tests/run-tests.py b/lang/python/tests/run-tests.py
index 55d3f11..3f9ece3 100644
--- a/lang/python/tests/run-tests.py
+++ b/lang/python/tests/run-tests.py
@@ -39,6 +39,8 @@ parser.add_argument('tests', metavar='TEST', type=str, nargs='+',
                     help='A test to run')
 parser.add_argument('-v', '--verbose', action="store_true", default=False,
                     help='Be verbose.')
+parser.add_argument('-q', '--quiet', action="store_true", default=False,
+                    help='Be quiet.')
 parser.add_argument('--interpreters', metavar='PYTHON', type=str,
                     default=[], action=SplitAndAccumulate,
                     help='Use these interpreters to run the tests, ' +
@@ -72,12 +74,15 @@ for interpreter in args.interpreters:
     env = dict(os.environ)
     env["PYTHONPATH"] = builddirs[0]
 
-    print("Running tests using {0} ({1})...".format(interpreter, version))
+    if not args.quiet:
+        print("Running tests using {0} ({1})...".format(interpreter, version))
+
     for test in args.tests:
         status = subprocess.call(
             [interpreter, os.path.join(args.srcdir, test)],
             env=env, stdout=out, stderr=err)
-        print("{0}: {1}".format(status_to_str(status), test))
+        if not args.quiet:
+            print("{0}: {1}".format(status_to_str(status), test))
         results.append(status)
 
 def count(status):
@@ -85,6 +90,8 @@ def count(status):
 def failed():
     return len(list(filter(lambda x: x not in (0, 77, 99), results)))
 
-print("{0} tests run, {1} succeeded, {2} failed, {3} skipped.".format(
-    len(results), count(0), failed(), count(77)))
-sys.exit(len(results) - count(0))
+if not args.quiet:
+    print("{0} tests run, {1} succeeded, {2} failed, {3} skipped.".format(
+        len(results), count(0), failed(), count(77)))
+    sys.exit(len(results) - count(0))
+sys.exit(results[0])

-----------------------------------------------------------------------

Summary of changes:
 lang/python/tests/run-tests.py | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list