|
|
@@ -88,12 +88,6 @@ didFail=
|
|
|
for dockerImage in "$@"; do
|
|
|
echo "testing $dockerImage"
|
|
|
|
|
|
- if ! docker inspect "$dockerImage" &> /dev/null; then
|
|
|
- echo $'\timage does not exist!'
|
|
|
- didFail=1
|
|
|
- continue
|
|
|
- fi
|
|
|
-
|
|
|
repo="${dockerImage%:*}"
|
|
|
tagVar="${dockerImage#*:}"
|
|
|
#version="${tagVar%-*}"
|
|
|
@@ -121,6 +115,14 @@ for dockerImage in "$@"; do
|
|
|
# Percona Server for MongoDB is still "mongo"
|
|
|
variant='psmdb'
|
|
|
;;
|
|
|
+ *nanoserver*)
|
|
|
+ # all nanoserver variants are windows and should have explict tests
|
|
|
+ variant='nanoserver'
|
|
|
+ ;;
|
|
|
+ *windowsservercore*)
|
|
|
+ # all servercore variants are windows and should have explict tests
|
|
|
+ variant='windowsservercore'
|
|
|
+ ;;
|
|
|
esac
|
|
|
|
|
|
testRepo="$repo"
|
|
|
@@ -191,6 +193,19 @@ for dockerImage in "$@"; do
|
|
|
tests+=( "$t" )
|
|
|
done
|
|
|
|
|
|
+ # check for zero tests before checking for existing image
|
|
|
+ # this will make windows variants no longer fail
|
|
|
+ if [ "${#tests[@]}" -eq '0' ]; then
|
|
|
+ echo $'\timage has no tests...skipping'
|
|
|
+ continue
|
|
|
+ fi
|
|
|
+
|
|
|
+ if ! docker inspect "$dockerImage" &> /dev/null; then
|
|
|
+ echo $'\timage does not exist!'
|
|
|
+ didFail=1
|
|
|
+ continue
|
|
|
+ fi
|
|
|
+
|
|
|
currentTest=0
|
|
|
totalTest="${#tests[@]}"
|
|
|
for t in "${tests[@]}"; do
|