mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-13 00:11:28 +08:00
fix: testcase path handling error when path startswith "./" or ".\\"
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
- fix: missing ${var} handling in overriding config variables
|
- fix: missing ${var} handling in overriding config variables
|
||||||
- fix: SyntaxError caused by quote in case of headers."Set-Cookie"
|
- fix: SyntaxError caused by quote in case of headers."Set-Cookie"
|
||||||
- fix: FileExistsError when specified project name conflicts with existed file
|
- fix: FileExistsError when specified project name conflicts with existed file
|
||||||
|
- fix: testcase path handling error when path startswith "./" or ".\\"
|
||||||
|
|
||||||
## 3.0.12 (2020-06-14)
|
## 3.0.12 (2020-06-14)
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,13 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
|
|
||||||
def __ensure_absolute(path: Text) -> Text:
|
def __ensure_absolute(path: Text) -> Text:
|
||||||
|
if path.startswith("./"):
|
||||||
|
# Linux/Darwin, hrun ./test.yml
|
||||||
|
path = path[len("./"):]
|
||||||
|
elif path.startswith(".\\"):
|
||||||
|
# Windows, hrun .\\test.yml
|
||||||
|
path = path[len(".\\"):]
|
||||||
|
|
||||||
path = ensure_path_sep(path)
|
path = ensure_path_sep(path)
|
||||||
project_meta = load_project_meta(path)
|
project_meta = load_project_meta(path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user