Move project test environments into the workspace
This commit is contained in:
@@ -7,6 +7,7 @@ from pathlib import Path
|
||||
import re
|
||||
|
||||
import paramiko
|
||||
from local_test_paths import SSH_KNOWN_HOSTS
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
@@ -23,7 +24,7 @@ def connect():
|
||||
host = fields["IP"].strip()
|
||||
port_match = re.search(r"(?:^|\s)-p\s+(\d+)", fields["SSH"])
|
||||
port = int(port_match.group(1)) if port_match else 22
|
||||
trust = Path.home() / ".codex-tools/tmp/qms-mobile-known_hosts"
|
||||
trust = SSH_KNOWN_HOSTS
|
||||
trust.parent.mkdir(parents=True, exist_ok=True)
|
||||
client = paramiko.SSHClient()
|
||||
if trust.exists():
|
||||
|
||||
Reference in New Issue
Block a user