diff mbox series

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

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

Commit Message

Shaoqin Huang Nov. 29, 2023, 3:21 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 | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Andrew Jones Nov. 29, 2023, 9:16 a.m. UTC | #1
On Tue, Nov 28, 2023 at 10:21:22PM -0500, Shaoqin Huang wrote:
> 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 | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/scripts/runtime.bash b/scripts/runtime.bash
> index d7054b80..b7105c19 100644
> --- a/scripts/runtime.bash
> +++ b/scripts/runtime.bash
> @@ -156,6 +156,11 @@ function run()
>          fi
>      }
>  
> +    if [ "${CONFIG_EFI}" == "y" ] && find_word "migration" "$groups"; then
> +        print_result "SKIP" $testname "" "migration test is not support in efi"

migration tests are not supported with efi

> +        return 2
> +    fi
> +
>      cmdline=$(get_cmdline $kernel)
>      if find_word "migration" "$groups"; then
>          cmdline="MIGRATION=yes $cmdline"


We don't need to do the find_word twice,

      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"

> -- 
> 2.40.1
> 

Thanks,
drew
Shaoqin Huang Nov. 29, 2023, 10:15 a.m. UTC | #2
Hi drew,

On 11/29/23 17:16, Andrew Jones wrote:
> On Tue, Nov 28, 2023 at 10:21:22PM -0500, Shaoqin Huang wrote:
>> 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 | 5 +++++
>>   1 file changed, 5 insertions(+)
>>
>> diff --git a/scripts/runtime.bash b/scripts/runtime.bash
>> index d7054b80..b7105c19 100644
>> --- a/scripts/runtime.bash
>> +++ b/scripts/runtime.bash
>> @@ -156,6 +156,11 @@ function run()
>>           fi
>>       }
>>   
>> +    if [ "${CONFIG_EFI}" == "y" ] && find_word "migration" "$groups"; then
>> +        print_result "SKIP" $testname "" "migration test is not support in efi"
> 
> migration tests are not supported with efi
> 
>> +        return 2
>> +    fi
>> +
>>       cmdline=$(get_cmdline $kernel)
>>       if find_word "migration" "$groups"; then
>>           cmdline="MIGRATION=yes $cmdline"
> 
> 
> We don't need to do the find_word twice,
> 
>        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"
> 

Thanks for your better solution. I can do that.

Thanks,
Shaoqin

>> -- 
>> 2.40.1
>>
> 
> Thanks,
> drew
>
diff mbox series

Patch

diff --git a/scripts/runtime.bash b/scripts/runtime.bash
index d7054b80..b7105c19 100644
--- a/scripts/runtime.bash
+++ b/scripts/runtime.bash
@@ -156,6 +156,11 @@  function run()
         fi
     }
 
+    if [ "${CONFIG_EFI}" == "y" ] && find_word "migration" "$groups"; then
+        print_result "SKIP" $testname "" "migration test is not support in efi"
+        return 2
+    fi
+
     cmdline=$(get_cmdline $kernel)
     if find_word "migration" "$groups"; then
         cmdline="MIGRATION=yes $cmdline"