Salome HOME
do not apply patches if a product is native
[tools/sat.git] / commands / check.py
index ecc83a0e69753295dc8f9d69d9b99315e90c08b1..5b09e594136cc9347e27d5bb9bc6dea7372cf61f 100644 (file)
@@ -23,7 +23,7 @@ import src
 # Define all possible option for the check command :  sat check <options>
 parser = src.options.Options()
 parser.add_option('p', 'products', 'list2', 'products',
-    _('products to configure. This option can be'
+    _('Optional: products to configure. This option can be'
     ' passed several time to configure several products.'))
 
 def get_products_list(options, cfg, logger):
@@ -89,6 +89,10 @@ def check_all_products(config, products_infos, logger):
     '''
     res = 0
     for p_name_info in products_infos:
+        __, p_info = p_name_info
+        if ("build_dir" not in  "build_dir" or 
+            not src.product.product_compiles(p_info)):
+            continue
         res_prod = check_product(p_name_info, config, logger)
         if res_prod != 0:
             res += 1 
@@ -159,7 +163,10 @@ def description():
     :rtype: str
     '''
     return _("The check command executes the \"check\" command in"
-             " the build directory")
+             " the build directory of all the products of the application."
+             "\nIt is possible to reduce the list of products to check by using"
+             " the --products option\n\nexample\nsat check SALOME-master "
+             "--products KERNEL,GUI,GEOM")
   
 def run(args, runner, logger):
     '''method that is called when salomeTools is called with check parameter.