From d9ff5020601ca066eba21d70719a34320392d086 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 28 May 2021 14:44:36 +0200 Subject: fix `make test` --- testing/start-saio.sh | 9 +-------- tests/pkg.go | 3 +++ 2 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 tests/pkg.go diff --git a/testing/start-saio.sh b/testing/start-saio.sh index 8be05e0..7e66f13 100755 --- a/testing/start-saio.sh +++ b/testing/start-saio.sh @@ -4,12 +4,5 @@ set -euo pipefail if docker inspect schwift-testing &>/dev/null; then echo 'Already running.' else - # The `readlink -f` converts the path to repo/testing/data to an absolute path. - DATA_PATH="$(readlink -f "$(dirname $0)")/data" - if [ ! -d "${DATA_PATH}" ]; then - mkdir "${DATA_PATH}" - chown 1000:1000 "${DATA_PATH}" - fi - - exec docker run --name schwift-testing -P -v "${DATA_PATH}:/swift/nodes" -t bouncestorage/swift-aio + exec docker run --name schwift-testing -P -t dockerswiftaio/docker-swift:2.27.0 fi diff --git a/tests/pkg.go b/tests/pkg.go new file mode 100644 index 0000000..571e0eb --- /dev/null +++ b/tests/pkg.go @@ -0,0 +1,3 @@ +package tests + +//This empty source file is required to make `make test` work. -- cgit v1.2.3