]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: [Debian] Only run regression-suite, if requested to.
authorDimitri John Ledkov <xnox@ubuntu.com>
Thu, 7 Mar 2019 15:32:00 +0000 (16:32 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 24 Apr 2019 10:12:28 +0000 (12:12 +0200)
BugLink: https://bugs.launchpad.net/bugs/1823056
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
debian/tests/ubuntu-regression-suite

index b4bb997416a56296cd76e8fd93491958fc53e3b0..952d38cc9331e3e6d8f8c250d4db7b970356ccf8 100755 (executable)
@@ -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