使用testinfra (Pytest插件)进行测试。我想用私钥测试Jenkins的远程主机。[root@jenkins tests]# testinfra --ssh-config=/path/to/private/key \None
Module already imported so can not be re-written: testinfr
, print("Exists: " + logPath)Exists: /var/opt/jws/jws3.0/v7/testinfra_node1"rt") as log:
E IOError: [Errno 2] No such file or directory: '/var/opt/jws/jws3.0/