Fix tests in build agents without unzip installed (#409)
diff --git a/tests/test_helpers.bash b/tests/test_helpers.bash
index da6d381..eb67f45 100644
--- a/tests/test_helpers.bash
+++ b/tests/test_helpers.bash
@@ -3,7 +3,6 @@
# check dependencies
(
type docker &>/dev/null || ( echo "docker is not available"; exit 1 )
- type unzip &>/dev/null || ( echo "unzip is not available"; exit 1 )
type curl &>/dev/null || ( echo "curl is not available"; exit 1 )
)>&2
@@ -77,3 +76,9 @@
docker kill "$1" &>/dev/null ||:
docker rm -fv "$1" &>/dev/null ||:
}
+
+function unzip_manifest {
+ local plugin=$1
+ local work=$2
+ bash -c "docker run --rm -v $work:/var/jenkins_home --entrypoint unzip $SUT_IMAGE -p /var/jenkins_home/plugins/$plugin META-INF/MANIFEST.MF | tr -d '\r'"
+}