mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-30 21:09:36 +08:00
fix: path handling error when har2case har file and cwd != ProjectRootDir
This commit is contained in:
@@ -80,7 +80,8 @@ def __ensure_absolute(path: Text) -> Text:
|
||||
absolute_path = os.path.join(project_meta.RootDir, path)
|
||||
|
||||
if not os.path.isfile(absolute_path):
|
||||
raise exceptions.ParamsError(f"Invalid testcase file path: {absolute_path}")
|
||||
logger.error(f"Invalid testcase file path: {absolute_path}")
|
||||
sys.exit(1)
|
||||
|
||||
return absolute_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user