Commit c0eaf14d93 for qemu.org
commit c0eaf14d93135e13d8b003f7cb41187e3510373d
Author: Zhao Liu <zhao1.liu@intel.com>
Date: Mon Mar 30 13:33:00 2026 +0800
tests/functional/migration.py: Skip migration_with_exec() if socat is not available
Commit 643a171f5668 ("tests: Replace ncat with socat in migration test
and drop ncat from containers") replaced ncat with socat, but missed to
skip related test cases if socat is not available, which will cause test
errors on the system without socat.
Fix this by checking socat instead of the original ncat.
Fixes: 643a171f5668 ("tests: Replace ncat with socat in migration test and drop ncat from containers")
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Message-ID: <20260330053300.2721608-1-zhao1.liu@intel.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
diff --git a/tests/functional/migration.py b/tests/functional/migration.py
index 2395119d6c..144f091ba8 100644
--- a/tests/functional/migration.py
+++ b/tests/functional/migration.py
@@ -80,8 +80,8 @@ def migration_with_unix(self):
self.migrate(dst_uri)
def migration_with_exec(self):
- if not which('ncat'):
- self.skipTest('ncat is not available')
+ if not which('socat'):
+ self.skipTest('socat is not available')
with Ports() as ports:
free_port = self._get_free_port(ports)
dst_uri = 'exec:socat TCP-LISTEN:%u -' % free_port