diff options
| author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-05-05 23:21:56 (GMT) |
|---|---|---|
| committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-05-05 23:21:56 (GMT) |
| commit | d6287641bd156e5152d40c5101cf1f50130d7319 (patch) | |
| tree | aff4e20f91626eeaaadc7674f959c15d0131d16b /webcontrol | |
| parent | 846938e789c15f4965be0ba745898f6c8b162906 (diff) | |
webcontrol: Allow kernel tests for EOL vivid
We don't publish vivid results on debci any more as it is EOL. But the kernel
team still needs to be able to trigger kernel/DKMS tests, so allow these.
LP: #1578228
Diffstat (limited to 'webcontrol')
| -rw-r--r-- | webcontrol/request/submit.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webcontrol/request/submit.py b/webcontrol/request/submit.py index d3e9ba7..2c170ab 100644 --- a/webcontrol/request/submit.py +++ b/webcontrol/request/submit.py @@ -71,7 +71,9 @@ class Submit: for ppa in ppas: if not self.is_valid_ppa(ppa): raise ValueError('Unknown PPA ' + ppa) - if not self.is_valid_package_with_results(None if ppas else release, arch, package): + # allow kernel tests for EOL vivid + skip_result_check = (release == 'vivid' and triggers and triggers[0].startswith('linux')) + if not self.is_valid_package_with_results(None if (ppas or skip_result_check) else release, arch, package): raise ValueError('Package %s does not have any test results' % package) for trigger in triggers: |
