[Spice-devel] [spice v2 3/8] tests: migrate: add support to run with remote-viewer

Victor Toso victortoso at redhat.com
Wed Sep 25 10:02:55 UTC 2019


From: Victor Toso <me at victortoso.com>

Signed-off-by: Victor Toso <victortoso at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
---
 tests/migrate.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/migrate.py b/tests/migrate.py
index 5a0f5930..1e15ffa7 100755
--- a/tests/migrate.py
+++ b/tests/migrate.py
@@ -58,7 +58,7 @@ def get_args():
     parser.add_argument('--qemu', dest='qemu', default='../../qemu/x86_64-softmmu/qemu-system-x86_64')
     parser.add_argument('--log_filename', dest='log_filename', default='migrate.log')
     parser.add_argument('--image', dest='image', default='')
-    parser.add_argument('--client', dest='client', default='spicy', choices=['spicy'])
+    parser.add_argument('--client', dest='client', default='spicy', choices=['spicy', 'remote-viewer'])
     parser.add_argument('--vdagent', choices=['on', 'off'], default='on')
     args = parser.parse_args(sys.argv[1:])
     if os.path.exists(args.qemu):
@@ -97,6 +97,9 @@ def start_qemu(qemu_exec, image, spice_port, qmp_filename, incoming_port=None, e
 
 def start_client(client, spice_port):
     client_cmd = "spicy --uri spice://localhost:%s" % (spice_port)
+    if client == "remote-viewer":
+        client_cmd = "remote-viewer spice://localhost:%s" % (spice_port)
+
     return Popen(client_cmd.split(), executable=client)
 
 def wait_active(q, active):
-- 
2.21.0



More information about the Spice-devel mailing list