[5/5] Only run regression-suite, if requested to.
diff mbox series

Message ID 20190307153222.29255-6-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/ubuntu-regression-suite | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Patch
diff mbox series

diff --git a/debian/tests/ubuntu-regression-suite b/debian/tests/ubuntu-regression-suite
index b4bb997416a5..952d38cc9331 100755
--- a/debian/tests/ubuntu-regression-suite
+++ b/debian/tests/ubuntu-regression-suite
@@ -12,6 +12,21 @@  case $source in
 	;;
 esac
 
+# Only run regression-suite if we were requested to
+have_meta=0
+for trigger in ${ADT_TEST_TRIGGERS}
+do
+    case "$trigger" in
+	linux-meta/*|linux-meta-*/*)
+	    have_meta=1
+	    ;;
+    esac
+done
+if [ -n "$ADT_TEST_TRIGGERS" ] && [ "$have_meta" -eq 0 ]; then
+    echo "ubuntu-regression-suite is not requested, as there is no linux-meta trigger"
+    exit 77
+fi
+
 sver=`dpkg-parsechangelog -SVersion`
 read x rver x </proc/version_signature