emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/aptel/dynamic-modules-rc3 b82611b 2/9: modules/tes


From: Teodor Zlatanov
Subject: [Emacs-diffs] feature/aptel/dynamic-modules-rc3 b82611b 2/9: modules/tests.py: honnor module list from args
Date: Tue, 10 Feb 2015 14:53:55 +0000

branch: feature/aptel/dynamic-modules-rc3
commit b82611bde82f32cef4c5c63e8e3aa452119cd9b5
Author: Aurélien Aptel <address@hidden>
Commit: Aurélien Aptel <address@hidden>

    modules/tests.py: honnor module list from args
---
 modules/tests.py |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/modules/tests.py b/modules/tests.py
index f224bd0..44ca196 100755
--- a/modules/tests.py
+++ b/modules/tests.py
@@ -16,12 +16,6 @@ MODULES_DIR = []
 MAKE_EXTRA_FLAGS = []
 OK = True
 
-for path in glob.glob(os.path.join(ROOT_DIR, "modules", "*")):
-    if os.path.isdir(path):
-        MODULES_DIR.append(path)
-
-assert len(MODULES_DIR) > 0, "No modules found"
-
 parser = argparse.ArgumentParser(description='Emacs dynamic-module tester')
 parser.add_argument('-e', '--emacs-bin', help='altenative path to the emacs 
binary')
 parser.add_argument('-B', '--rebuild', action='store_true', help='force make 
to build (-B flag)')
@@ -36,6 +30,18 @@ if ARGS.emacs_bin:
 
 assert os.path.isfile(EMACS_BIN), "No emacs binary found at path %s" % 
EMACS_BIN
 
+if ARGS.module:
+    for mod in ARGS.module:
+        path = os.path.join(ROOT_DIR, "modules", mod)
+        if os.path.isdir(path):
+            MODULES_DIR.append(path)
+else:
+    for path in glob.glob(os.path.join(ROOT_DIR, "modules", "*")):
+        if os.path.isdir(path):
+            MODULES_DIR.append(path)
+
+assert len(MODULES_DIR) > 0, "No modules found"
+
 for module_dir in MODULES_DIR:
     base, name = os.path.split(module_dir)
     print ""



reply via email to

[Prev in Thread] Current Thread [Next in Thread]