Browse Source

Fix "maven:onbuild-alpine" failing tests due to not being recognized properly as "onbuild"

Tianon Gravi 9 years ago
parent
commit
fd54f4f87b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      test/run.sh

+ 6 - 0
test/run.sh

@@ -97,6 +97,12 @@ for dockerImage in "$@"; do
 	#version="${tagVar%-*}"
 	variant="${tagVar##*-}"
 	
+	if [[ "$tagVar" == *onbuild* ]]; then
+		# "maven:onbuild-alpine" is still onbuild
+		# ONCE ONBUILD, ALWAYS ONBUILD
+		variant='onbuild'
+	fi
+	
 	testRepo=$repo
 	[ -z "${testAlias[$repo]}" ] || testRepo="${testAlias[$repo]}"