You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/08/11 11:42:05 UTC

[incubator-ponymail-unit-tests] branch master updated: Allow loading more than one specific spec file at a time

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-unit-tests.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d2981d  Allow loading more than one specific spec file at a time
9d2981d is described below

commit 9d2981d09cc62f857724ca8beb602bc8c7e4fba3
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Aug 11 13:41:53 2020 +0200

    Allow loading more than one specific spec file at a time
---
 runall.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/runall.py b/runall.py
index 7680f74..56c05f6 100644
--- a/runall.py
+++ b/runall.py
@@ -11,12 +11,12 @@ if __name__ == '__main__':
     parser = argparse.ArgumentParser(description='Command line options.')
     parser.add_argument('--rootdir', dest='rootdir', type=str, required=True,
                         help="Root directory of Apache Pony Mail")
-    parser.add_argument('--load', dest='load', type=str,
-                        help="Load only a specific yaml spec instead of all test specs")
+    parser.add_argument('--load', dest='load', type=str, nargs='+',
+                        help="Load only specific yaml spec files instead of all test specs")
     args = parser.parse_args()
 
     if args.load:
-        spec_files = [args.load]
+        spec_files = args.load
     else:
         spec_files = [os.path.join('yaml', x) for x in os.listdir('yaml') if x.endswith('.yaml')]