mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-30 21:09:36 +08:00
fix: Resolve the FileNotFoundError while using subprocess on Windows
This commit is contained in:
@@ -18,7 +18,7 @@ class TestScaffold(unittest.TestCase):
|
|||||||
|
|
||||||
# run demo testcases
|
# run demo testcases
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(["hrun", project_name])
|
subprocess.check_call(["hrun", project_name], shell=True)
|
||||||
except subprocess.SubprocessError:
|
except subprocess.SubprocessError:
|
||||||
raise
|
raise
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user