浏览代码

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#*:}"