summaryrefslogtreecommitdiffhomepage
path: root/kokoro/run_tests.sh
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-02-13 19:37:44 -0800
committerShentubot <shentubot@google.com>2019-02-13 19:38:44 -0800
commitcbd6b35c56011d6e2d75a68385bdc984fdf35317 (patch)
tree247e440bc41a52e5595e25247acea72faf8b163c /kokoro/run_tests.sh
parente0b3d3323fbb4b27280f0087427bb04c3e71238b (diff)
gvisor/kokoro: run apt-get update before apt-get install
We need to update the package lists, otherwise apt-get install can request an old package which has been removed from repositories. PiperOrigin-RevId: 233879031 Change-Id: I2e1b3afd9d01008f774f10efd8852fd3f5e1c882
Diffstat (limited to 'kokoro/run_tests.sh')
-rwxr-xr-xkokoro/run_tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh
index 81d428d59..648e72a90 100755
--- a/kokoro/run_tests.sh
+++ b/kokoro/run_tests.sh
@@ -99,7 +99,8 @@ install_runtime() {
install_crictl_test_deps() {
# Install containerd.
# libseccomp2 needs to be downgraded in order to install libseccomp-dev.
- sudo -n -E apt-get install -y --force-yes libseccomp2=2.1.1-1ubuntu1~trusty4
+ sudo -n -E apt-get update
+ sudo -n -E apt-get install -y --force-yes libseccomp2=2.1.1-1ubuntu1~trusty5
sudo -n -E apt-get install -y btrfs-tools libseccomp-dev
# go get will exit with a status of 1 despite succeeding, so ignore errors.
go get -d github.com/containerd/containerd || true