From b6148b657661db2b9d7858102e9aa3cf6f19f47f Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 8 Jun 2020 12:33:35 +0200 Subject: force bats version to v1.1.0 We experienced regression when using the latest `v1.2.0-dev` bats in Ubuntu 20.04 (see github.com/containers/libpod/pull/6418). Using bats v1.1.0 worked in the Ubuntu test VM. Signed-off-by: Valentin Rothberg --- hack/install_bats.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 hack/install_bats.sh (limited to 'hack/install_bats.sh') diff --git a/hack/install_bats.sh b/hack/install_bats.sh new file mode 100755 index 000000000..00ded07a9 --- /dev/null +++ b/hack/install_bats.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +die() { echo "${1:-No error message given} (from $(basename $0))"; exit 1; } + +buildDir=$(mktemp -d) +git clone https://github.com/bats-core/bats-core $buildDir + +pushd $buildDir +pwd +git reset --hard ${VERSION} +./install.sh /usr/local +popd + +rm -rf $buildDir -- cgit v1.2.3-54-g00ecf