我的云构建在npm test上超时失败,没有任何有用的信息被发送到stdout。可以在文件中找到完整的日志,但我无法找到在云构建环境中使用ssh的方法。> jest
ts-jest[versions] (WARN) Version 4.1.0-beta of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a
我正在使用subprocess模块和check_output()在我的Python脚本中创建一个虚拟shell,对于返回零退出状态的命令,它工作得很好,但是对于那些不返回零退出状态的命令,它将返回一个异常例如,我希望一些东西像这样工作:cat: non-existing-file: No such file or directory但是,这种情况会发生:
>>>
如果我将cat命令保存到字符串中,然后执行它,那么我将得到一个错误。linux# cmd="cat /data/test/test.tx* | grep toto"cat: |: No such file or directorycat: grep: No such file or directory
cat: toto: No such fi