diff mbox series

[kvm-unit-tests,v3,2/3] runtime: Skip the migration tests when run on EFI

Message ID 20240116065847.71623-3-shahuang@redhat.com (mailing list archive)
State New, archived
Headers show
Series arm64: runtime scripts improvements on efi | expand

Commit Message

Shaoqin Huang Jan. 16, 2024, 6:58 a.m. UTC
When running the migration tests on EFI, the migration will always fail
since the efi/run use the vvfat format to run test, but the vvfat format
does not support live migration. So those migration tests will always
fail.

Instead of waiting for fail everytime when run migration tests on EFI,
skip those tests if running on EFI.

Signed-off-by: Shaoqin Huang <shahuang@redhat.com>
---
 scripts/runtime.bash | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/scripts/runtime.bash b/scripts/runtime.bash
index c73fb024..7deb047c 100644
--- a/scripts/runtime.bash
+++ b/scripts/runtime.bash
@@ -156,6 +156,10 @@  function run()
 
     cmdline=$(get_cmdline $kernel)
     if find_word "migration" "$groups"; then
+        if [ "${CONFIG_EFI}" == "y" ]; then
+            print_result "SKIP" $testname "" "migration tests are not supported with efi"
+            return 2
+        fi
         cmdline="MIGRATION=yes $cmdline"
     fi
     if find_word "panic" "$groups"; then