Salome HOME
sat package: remove the .pyconf file in the root directory of
[tools/sat.git] / commands / check.py
index 6d9f38bac88f26e1442ddb3981f4d0a48bb24c28..cfa2c822946fdb60fbadfc2fc34c2e140fb96476 100644 (file)
@@ -139,13 +139,14 @@ def check_product(p_name_info, config, logger):
 
     # Get the command to execute for script products
     cmd_found = True
-    if src.product.product_has_script(p_info):
+    command = ""
+    if src.product.product_has_script(p_info) and not ignored:
         command = src.get_cfg_param(p_info, "test_build", "Not found")
         if command == "Not found":
             cmd_found = False
             msg = _('WARNING: The product %s is defined as having tests. But it'
                     ' is compiled using a script and the key "test_build" is '
-                    'not defined in the definition of %s' % p_name)
+                    'not defined in the definition of %s' % (p_name, p_name))
             logger.write("%s\n" % msg, 4)
                 
     if ignored or not cmd_found:
@@ -173,7 +174,7 @@ def check_product(p_name_info, config, logger):
 
     # Launch the check    
     log_step(logger, header, "CHECK")
-    res = builder.check()
+    res = builder.check(command=command)
     log_res_step(logger, res)
     
     # Log the result