[Acked] [PATCH 1/1][Trusty][SRU] UBUNTU: SAUCE: The very first thing we should do when testing is make sure we are testing the correct kernel

Andy Whitcroft apw at canonical.com
Wed Oct 29 19:51:28 UTC 2014


On Wed, Oct 29, 2014 at 12:22:21PM -0700, Brad Figg wrote:
> BugLink: http://bugs.launchpad.net/bugs/1385330
> 
> Signed-off-by: Brad Figg <brad.figg at canonical.com>
> ---
>  debian/tests/ubuntu-regression-suite | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/debian/tests/ubuntu-regression-suite b/debian/tests/ubuntu-regression-suite
> index 233b771..1de5ce6 100755
> --- a/debian/tests/ubuntu-regression-suite
> +++ b/debian/tests/ubuntu-regression-suite
> @@ -1,4 +1,19 @@
>  #!/bin/sh
>  set -e
> +
> +sver=`dpkg-parsechangelog -SVersion`
> +read x rver x </proc/version_signature
> +
> +flavour=${rver#*-*-}
> +rver=${rver%-$flavour}
> +
> +echo "Source Package Version: $sver"
> +echo "Running Kernel Version: $rver"
> +
> +if [ "$sver" != "$rver" ]; then
> +    echo "ERROR: running version does not match source package" 1>&2
> +    exit 1
> +fi
> +
>  git clone git://kernel.ubuntu.com/ubuntu/kernel-testing
>  kernel-testing/run-dep8-tests

Looks good.

Acked-by: Andy Whitcroft <apw at canonical.com>

-apw




More information about the kernel-team mailing list