run with different tests sets or parameters. Return true if tests can be
compared
"""
+ ret = True
base_configuration = base['configuration']
target_configuration = target['configuration']
logger.debug(f"Enriching {target_configuration['STARTTIME']} with {guess}")
target_configuration['OESELFTEST_METADATA'] = guess
- return metadata_matches(base_configuration, target_configuration) \
+ # Test runs with LTP results in should only be compared with other runs with LTP tests in them
+ if base_configuration.get('TEST_TYPE') == 'runtime' and any(result.startswith("ltpresult") for result in base['result']):
+ ret = target_configuration.get('TEST_TYPE') == 'runtime' and any(result.startswith("ltpresult") for result in target['result'])
+
+ return ret and metadata_matches(base_configuration, target_configuration) \
and machine_matches(base_configuration, target_configuration)