Home
last modified time | relevance | path

Searched refs:current_parent (Results 1 – 2 of 2) sorted by relevance

/tools/asuite/aidegen/lib/
Dnative_util_unittest.py71 current_parent = None
74 result = native_util._find_parent(abs_path, current_parent)
76 current_parent = 'a/b/c/d/e'
77 result = native_util._find_parent(abs_path, current_parent)
79 current_parent = 'a/b/c'
80 expected = current_parent
81 result = native_util._find_parent(abs_path, current_parent)
83 current_parent = 'a/b/f'
85 result = native_util._find_parent(abs_path, current_parent)
Dnative_util.py70 def _find_parent(abs_path, current_parent): argument
81 if not current_parent:
83 if common_util.is_source_under_relative_path(abs_path, current_parent):
84 return current_parent
85 if common_util.is_source_under_relative_path(current_parent, abs_path):
88 os.path.dirname(abs_path), os.path.dirname(current_parent))