[Spice-devel] [spice v2 7/8] tests: migrate: add option --wait-user-input

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


From: Victor Toso <me at victortoso.com>

The iterate() method already considers it. This is useful if one wants
to attach gdb on qemu for instance.

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

diff --git a/tests/migrate.py b/tests/migrate.py
index d0eda099..b76bc877 100755
--- a/tests/migrate.py
+++ b/tests/migrate.py
@@ -60,6 +60,8 @@ def get_args():
     parser.add_argument('--client', dest='client', default='spicy', choices=['spicy', 'remote-viewer'])
     parser.add_argument('--vdagent', dest="vdagent", action='store_true', default=False,
                         help="Append options for agent's virtserialport")
+    parser.add_argument('--wait-user-input', dest="wait_user_input", action='store_true', default=False,
+                        help="Wait user's input to start migration test")
     args = parser.parse_args(sys.argv[1:])
     if os.path.exists(args.qemu):
         args.qemu_exec = args.qemu
@@ -213,7 +215,7 @@ def main():
         args.spice_port2], vdagent=args.vdagent)
     atexit.register(cleanup, migrator)
     while True:
-        migrator.iterate()
+        migrator.iterate(args.wait_user_input)
 
 if __name__ == '__main__':
     main()
-- 
2.21.0



More information about the Spice-devel mailing list