소스 검색

If an image we're trying to test doesn't exist, skip it instead of having "pulling" output mixed in with the tests and borking things up

Tianon Gravi 10 년 전
부모
커밋
a2006fc0b1
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      test/run.sh

+ 5 - 0
test/run.sh

@@ -53,6 +53,11 @@ done
 for dockerImage in "$@"; do
 	echo "testing $dockerImage"
 	
+	if ! docker inspect "$dockerImage" &> /dev/null; then
+		echo $'\timage does not exist!'
+		continue
+	fi
+	
 	noNamespace="${dockerImage##*/}"
 	repo="${noNamespace%:*}"
 	tagVar="${noNamespace#*:}"