diff mbox series

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

Message ID 20231130032940.2729006-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. 30, 2023, 3:29 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(+)

Comments

Shaoqin Huang Nov. 30, 2023, 4:17 a.m. UTC | #1
On 11/30/23 11:29, 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 | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/scripts/runtime.bash b/scripts/runtime.bash
> index c73fb024..64d223e8 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

I'm stupid. Should be ${CONFIG_EFI} here.

> +            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
Andrew Jones Jan. 15, 2024, 12:25 p.m. UTC | #2
On Wed, Nov 29, 2023 at 10:29:39PM -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 | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/scripts/runtime.bash b/scripts/runtime.bash
> index c73fb024..64d223e8 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
> -- 
> 2.40.1
> 

This isn't arm-specific, so we should drop the arm64 prefix from the patch
summary and get an ack from x86 people.

Thanks,
drew
Shaoqin Huang Jan. 16, 2024, 6:19 a.m. UTC | #3
On 1/15/24 20:25, Andrew Jones wrote:
> On Wed, Nov 29, 2023 at 10:29:39PM -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 | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/scripts/runtime.bash b/scripts/runtime.bash
>> index c73fb024..64d223e8 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
>> -- 
>> 2.40.1
>>
> 
> This isn't arm-specific, so we should drop the arm64 prefix from the patch
> summary and get an ack from x86 people.
> 

Ok, I can fix it and respin.

> Thanks,
> drew
>
diff mbox series

Patch

diff --git a/scripts/runtime.bash b/scripts/runtime.bash
index c73fb024..64d223e8 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