fix: bugfix

This commit is contained in:
xucong053
2021-07-18 16:02:47 +08:00
committed by GitHub
parent dd05e920fa
commit b583e3cce1

View File

@@ -2,6 +2,7 @@ import os
import shutil
import subprocess
import unittest
import platform
from httprunner.scaffold import create_scaffold
@@ -18,7 +19,10 @@ class TestScaffold(unittest.TestCase):
# run demo testcases
try:
subprocess.check_call(["hrun", project_name] shell=True)
if platform.system() is "Windows":
subprocess.check_call(["hrun", project_name], shell=True)
else:
subprocess.check_call(["hrun", project_name])
except subprocess.SubprocessError:
raise
finally: