From e06d89f95dffc90ac10f958a7396b7b5b816d8a7 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Tue, 12 Mar 2024 15:12:02 +0400 Subject: [PATCH] integration-tests: test_run() with --no-graphics (#757) --- integration-tests/test_run.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/integration-tests/test_run.py b/integration-tests/test_run.py index b3060ae..f7d7b75 100644 --- a/integration-tests/test_run.py +++ b/integration-tests/test_run.py @@ -1,16 +1,18 @@ import uuid +import pytest from paramiko.client import SSHClient, AutoAddPolicy -def test_run(tart): +@pytest.mark.parametrize("run_opts", [[], ["--no-graphics"]]) +def test_run(tart, run_opts): vm_name = f"integration-test-run-{uuid.uuid4()}" # Instantiate a VM with admin:admin SSH access tart.run(["clone", "ghcr.io/cirruslabs/macos-sonoma-base:latest", vm_name]) # Run the VM asynchronously - tart_run_process = tart.run_async(["run", vm_name]) + tart_run_process = tart.run_async(["run", vm_name] + run_opts) # Obtain the VM's IP stdout, _ = tart.run(["ip", vm_name, "--wait", "120"])