def _compute_md5_text(self, f):
        from roslib.gentools import compute_md5_text, get_dependencies
        from roslib.msgs import load_from_string

        text = open(f, 'r').read()
        spec = load_from_string(text, package_context=TEST_CTX)
        get_deps_dict = get_dependencies(spec, TEST_CTX, compute_files=False)
        return compute_md5_text(get_deps_dict, spec)
Esempio n. 2
0
    def _compute_md5_text(self, f):
        from roslib.gentools import compute_md5_text, get_dependencies
        from roslib.msgs import load_from_string

        text = open(f, 'r').read()
        spec = load_from_string(text, package_context=TEST_CTX)
        get_deps_dict = get_dependencies(spec, TEST_CTX, compute_files=False)
        return compute_md5_text(get_deps_dict, spec)