Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3里 run_one_report运行命令异常 #16

Open
namedlock opened this issue Sep 15, 2022 · 0 comments
Open

python3里 run_one_report运行命令异常 #16

namedlock opened this issue Sep 15, 2022 · 0 comments

Comments

@namedlock
Copy link

运行环境:Darwin B-523FMD6M-2359.local 21.6.0 Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:25 PDT 2022; root:xnu-8020.140.41~1/RELEASE_X86_64 x86_64
python: Python 3.9.13

运行命令原来是数组形式的,在我的环境中报错了。修改成一个字符串就可以正常运行了。

cmd = 'airtest report {} --log_root {} --outfile {}'.format(
air, log_dir, os.path.join(log_dir, 'log.html'))

ret = subprocess.call(cmd, shell=True, cwd=os.getcwd())

感谢老板
thanks boss

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant