Skip to content

Commit 8dc96de

Browse files
authored
fix(analyser): update path handling in TestFileAnalyser (#2161)
fix(analyser): update path handling in TestFileAnalyser to use absolute paths Signed-off-by: jiezhuzzz <[email protected]>
1 parent 21d9af0 commit 8dc96de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fuzz_introspector/analyses/test_file_analyser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def standalone_analysis(self,
121121

122122
# Auto determine base information if not provided
123123
if not self.directory:
124-
paths = [func.function_source_file for func in functions.values()]
124+
paths = [os.path.abspath(func.function_source_file) for func in functions.values()]
125125
common_path = os.path.commonpath(paths)
126126
if os.path.isfile(common_path):
127127
common_path = os.path.dirname(common_path)

0 commit comments

Comments
 (0)