qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v4 3/3] Acceptance test: provides to use RDMA transport for migra


From: Oksana Vohchana
Subject: [PATCH v4 3/3] Acceptance test: provides to use RDMA transport for migration test
Date: Mon, 23 Mar 2020 12:30:16 +0200

Adds test for RDMA migration check

Signed-off-by: Oksana Vohchana <address@hidden>
---
 tests/acceptance/migration.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py
index 59144f18fd..c96da1dd4b 100644
--- a/tests/acceptance/migration.py
+++ b/tests/acceptance/migration.py
@@ -107,3 +107,15 @@ class Migration(Test):
         """
         free_port = self._get_free_port()
         dest_uri = 'exec:nc -l localhost %u' % free_port
+
+    @skipUnless(_if_rdma_enable(), 'Unit rdma.service could not be found')
+    @skipUnless(_get_interface_rdma(), 'RDMA service or interface not 
configured')
+    def test_migration_with_rdma_localhost(self):
+        iface = _get_interface_rdma()
+        ip = _get_ip_rdma(iface)
+        if ip:
+            free_port = self._get_free_port(address=ip)
+        else:
+            self.cancel("Ip address doesn't configured properly on 
interface:%s" % iface)
+        dest_uri = 'rdma:%s:%u' % (ip, free_port)
+        self.do_migrate(dest_uri)
-- 
2.21.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]