Don't excuse.force() on skiptest hint

ubuntu/rebased
Paul Gevers 7 years ago
parent 6252826fad
commit cb716e3186
No known key found for this signature in database
GPG Key ID: 9C5C99EB05BD750A

@ -291,7 +291,6 @@ class AutopkgtestPolicy(BasePolicy):
excuse.addreason('skiptest') excuse.addreason('skiptest')
excuse.addhtml("Should wait for tests relating to %s %s, but forced by %s" % excuse.addhtml("Should wait for tests relating to %s %s, but forced by %s" %
(source_name, source_data_srcdist.version, hints[0].user)) (source_name, source_data_srcdist.version, hints[0].user))
excuse.force()
verdict = PolicyVerdict.PASS_HINTED verdict = PolicyVerdict.PASS_HINTED
else: else:
excuse.addreason('autopkgtest') excuse.addreason('autopkgtest')

@ -1855,7 +1855,7 @@ class T(TestBase):
}), }),
}, },
{'green': [('old-version', '1'), ('new-version', '2'), {'green': [('old-version', '1'), ('new-version', '2'),
('forced-reason', 'skiptest'), ('reason', 'skiptest'),
('excuses', 'Should wait for tests relating to green 2, but forced by autopkgtest')] ('excuses', 'Should wait for tests relating to green 2, but forced by autopkgtest')]
}) })

Loading…
Cancel
Save