Bug 882 - ./test.py reports 6 FAILs with --disable-python
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sat, 17 Apr 2010 17:36:53 +0100
changeset 6243 a597d6d2da85
parent 6242 803b7efd0117
child 6244 ec4b512688d8
child 6245 a88bde26913e
Bug 882 - ./test.py reports 6 FAILs with --disable-python
test.py
--- a/test.py	Sat Apr 17 12:02:53 2010 +0200
+++ b/test.py	Sat Apr 17 17:36:53 2010 +0100
@@ -45,6 +45,7 @@
     "ENABLE_NSC",
     "ENABLE_REAL_TIME",
     "ENABLE_EXAMPLES",
+    "ENABLE_PYTHON_BINDINGS",
 ]
 
 ENABLE_NSC = False
@@ -1313,7 +1314,7 @@
     #
     if len(options.suite) == 0 and len(options.example) == 0 and len(options.pyexample) == 0:
         if len(options.constrain) == 0 or options.constrain == "pyexample":
-            if ENABLE_EXAMPLES:
+            if ENABLE_EXAMPLES and ENABLE_PYTHON_BINDINGS:
                 for test, do_run in python_tests:
                     if eval(do_run):
                         job = Job()