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.py69 def _find_parent(abs_path, current_parent): argument
80 if not current_parent:
82 if common_util.is_source_under_relative_path(abs_path, current_parent):
83 return current_parent
84 if common_util.is_source_under_relative_path(current_parent, abs_path):
87 os.path.dirname(abs_path), os.path.dirname(current_parent))