Update app/routes/jobs.py
This commit is contained in:
@@ -186,7 +186,7 @@ def submit_step1():
|
||||
|
||||
# If successful, run scenario scan to get available scenarios
|
||||
print(f"[DEBUG] Running scenario scan...")
|
||||
scan_cmd = f"sshpass -p '{ssh_password}' ssh {ssh_options} {ssh_user}@{ssh_host} 'python3 TPF/Sensor_hub_repo/Tools/TPF/scenario_scan.py'"
|
||||
scan_cmd = f"sshpass -p '{ssh_password}' ssh {ssh_options} {ssh_user}@{ssh_host} 'python3 /home/asf/testarena_backend/TPF/Sensor_hub_repo/tools/TPF/scenario_scan.py'"
|
||||
print(f"[DEBUG] Executing scan command: {scan_cmd.replace(ssh_password, '***')}")
|
||||
|
||||
scan_result = subprocess.run(scan_cmd, shell=True, capture_output=True, text=True, timeout=120)
|
||||
|
||||
Reference in New Issue
Block a user