]> xenbits.xensource.com Git - osstest.git/commit
apt: lock osstest's usages of apt-get against each other
authorIan Campbell <ian.campbell@citrix.com>
Tue, 15 Apr 2014 10:39:32 +0000 (11:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 30 Jan 2015 08:05:52 +0000 (08:05 +0000)
commit6fea4be0830682389986c03ed3c60d931e1f8742
treeef878871fc34dbc1be3a655a6ce618339e0f67a8
parentcd51de41a4a9bf4709cd5b266988572d6773e887
apt: lock osstest's usages of apt-get against each other

Currently we rely on all apt-get invocations being in a single
ts-xen-build-prep job which can't run on a shared host.

That is a bit inflexible so instead use our own lock. We wait
indefinitely and rely on osstest's existing command timeout
infrastructure to catch problems.

target_install_packages*() previous estimated the time taken to
install the packages based on the number of packages. This no longer
applies because the install might get stuck behind some other large
install. Use a 3000s (nearly an hour) timeout instead (I expect
failures here to be unusual so erred on the big side)

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm
Osstest/TestSupport.pm