mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 03:07:35 +08:00
fix: IndexError in ensure_file_path_valid when file_path=os.getcwd()
This commit is contained in:
@@ -199,6 +199,9 @@ def ensure_file_path_valid(file_path: Text) -> Text:
|
||||
else:
|
||||
raw_file_relative_name = raw_file_name
|
||||
|
||||
if raw_file_relative_name == "":
|
||||
return file_path
|
||||
|
||||
path_names = []
|
||||
for name in raw_file_relative_name.rstrip(os.sep).split(os.sep):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user