[3/5] Make ubuntu-regression-suite skippable on unbootable kernels.
diff mbox series

Message ID 20190307153222.29255-4-xnox@ubuntu.com
State New
Headers show
Series
  • autopkgtest skippable fixes
Related show

Commit Message

Dimitri John Ledkov March 7, 2019, 3:32 p.m. UTC
---
 debian/tests/control                 |  2 +-
 debian/tests/ubuntu-regression-suite | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/debian/tests/control b/debian/tests/control
index d2bd0c54ddb8..ed1e6c8becc5 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -4,4 +4,4 @@  Restrictions: allow-stderr
 
 Tests: ubuntu-regression-suite
 Depends: build-essential, gcc-multilib [amd64 armhf i386], gdb, git, bzr
-Restrictions: allow-stderr, isolation-machine, breaks-testbed
+Restrictions: allow-stderr, isolation-machine, breaks-testbed, skippable
diff --git a/debian/tests/ubuntu-regression-suite b/debian/tests/ubuntu-regression-suite
index 1de5ce62563d..b4bb997416a5 100755
--- a/debian/tests/ubuntu-regression-suite
+++ b/debian/tests/ubuntu-regression-suite
@@ -1,6 +1,17 @@ 
 #!/bin/sh
 set -e
 
+# Only run regression-suite on kernels we can boot in canonistack
+source=`dpkg-parsechangelog -SSource`
+case $source in
+    linux|linux-hwe|linux-kvm|linux-oem)
+	;;
+    *)
+	echo "ubuntu-regression-suite is pointless, if one cannot boot the kernel"
+	exit 77
+	;;
+esac
+
 sver=`dpkg-parsechangelog -SVersion`
 read x rver x </proc/version_signature