'Runs a test from within the thread-pool map() function.
Args:
test_name: [string] The name of the test.
spec: [dict] The test profile specification.'

def __run_or_skip_test_profile_entry(self, test_name, spec):

    options = self.options
    if (not re.search(options.test_include, test_name)):
        reason = 'Skipped    test    "{name}"    because    it    does    not    match    explicit    --test_include    criteria    "{criteria}".'.format(name=test_name, criteria=options.test_include)
        logging.warning(reason)
        self.__skipped.append((test_name, reason))
        return
    if (options.test_exclude and re.search(options.test_exclude, test_name)):
        reason = 'Skipped    test    "{name}"    because    it    matches    explicit    --test_exclude    criteria    "{criteria}".'.format(name=test_name, criteria=options.test_exclude)
        logging.warning(reason)
        self.__skipped.append((test_name, reason))
        return
    self.run_test_profile_helper(test_name, spec)
