# 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:
# Launch the check
log_step(logger, header, "CHECK")
- res = builder.check()
+ res = builder.check(command=command)
log_res_step(logger, res)
# Log the result