Don't use latest timestamp from results.cache if it is shared

When using a shared results cache with PPAs (silos) we cannot rely on the
latest time stamp from the distro's results.cache. As soon as there is a new
run for a package in Ubuntu proper, that updated time stamp hides all previous
results for the PPA, and causes tests to be re-requested unnecessarily.
This commit is contained in:
Martin Pitt 2016-02-09 16:58:09 +01:00
parent 7636d1c862
commit 83f1635e6b

View File

@ -324,6 +324,7 @@ class AutoPackageTest(object):
'prefix': '%s/%s/%s/%s/' % (self.series, arch, srchash(src), src)}
# determine latest run_id from results
if not self.britney.options.adt_shared_results_cache:
latest_run_id = self.latest_run_for_package(src, arch)
if latest_run_id:
query['marker'] = query['prefix'] + latest_run_id