[PATCH] Report kernel failures during kickstart tests.

Vratislav Podzimek vpodzime at redhat.com
Thu Nov 12 16:31:18 UTC 2015


On Thu, 2015-11-12 at 09:56 -0500, Chris Lumens wrote:
> Most of this is already there - all I need to do is the final reporting
> part.
> ---
>  tests/kickstart_tests/scripts/run_one_ks.sh | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/tests/kickstart_tests/scripts/run_one_ks.sh b/tests/kickstart_tests/scripts/run_one_ks.sh
> index 7def0ab..a6278e6 100755
> --- a/tests/kickstart_tests/scripts/run_one_ks.sh
> +++ b/tests/kickstart_tests/scripts/run_one_ks.sh
> @@ -27,6 +27,7 @@
>  # 0  - Everything worked
>  # 1  - Test failed for unspecified reasons
>  # 2  - Test failed due to time out
> +# 3  - Test failed due to kernel panic
>  # 77 - Something needed by the test doesn't exist, so skip
>  
>  IMAGE=
> @@ -118,6 +119,11 @@ runone() {
>              cleanup ${tmpdir}
>              cleanup_tmp ${tmpdir}
>              return 2
> +        elif [[ "$(grep 'Call Trace' ${tmpdir}/livemedia.log)" != "" ]]; then
> +            echo RESULT:${name}:FAILED:Kernel panic.
> +            cleanup ${tmpdir}
> +            cleanup_tmp ${tmpdir}
> +            return 3
>          fi
>  
>          result=$(validate ${tmpdir})
Looks good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list