[REVIEW,10/10,linux] UBUNTU: [Debian] Update linux source package name in debian/tests/*
diff mbox series

Message ID 20191203222657.1152249-11-seth.forshee@canonical.com
State New
Headers show
Series
  • [REVIEW,01/10,linux] UBUNTU: [Packaging] Don't use SRCPKGNAME for linux-libc-dev
Related show

Commit Message

Seth Forshee Dec. 3, 2019, 10:26 p.m. UTC
Change test scripts checking for linux as a source package name
to look for linux-[0-9].[0-9] instead to cope with the change
in source package naming.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
---
 debian/tests/rebuild                 | 2 +-
 debian/tests/ubuntu-regression-suite | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/debian/tests/rebuild b/debian/tests/rebuild
index 365835c92d92..49ad5b235603 100755
--- a/debian/tests/rebuild
+++ b/debian/tests/rebuild
@@ -7,7 +7,7 @@  build_needed=0
 for trigger in ${ADT_TEST_TRIGGERS:-force}
 do
 	case "$trigger" in
-	linux/*|linux-lts-*/*|linux-meta*/*|linux-oem*/*|fakeroot/*|gdb/*|git/*|bzr/*|gcc-multilib/*)	;;
+	linux-[0-9].[0-9]/*|linux-lts-*/*|linux-meta*/*|linux-oem*/*|fakeroot/*|gdb/*|git/*|bzr/*|gcc-multilib/*)	;;
 	*)						build_needed=1 ;;
 	esac
 done
diff --git a/debian/tests/ubuntu-regression-suite b/debian/tests/ubuntu-regression-suite
index 72a95a1e32cd..0e9a2115a74f 100755
--- a/debian/tests/ubuntu-regression-suite
+++ b/debian/tests/ubuntu-regression-suite
@@ -4,7 +4,7 @@  set -e
 # Only run regression-suite on kernels we can boot in canonistack
 source=`dpkg-parsechangelog -SSource`
 case $source in
-    linux|linux-hwe|linux-hwe-edge|linux-kvm|linux-oem)
+    linux-[0-9].[0-9]|linux-hwe|linux-hwe-edge|linux-kvm|linux-oem)
 	;;
     *)
 	echo "ubuntu-regression-suite is pointless, if one cannot boot the kernel"