浏览代码

Combine globalTests and imageTests path lookups

Mike Dillon 10 年之前
父节点
当前提交
97e74b2dcd
共有 1 个文件被更改,包括 1 次插入15 次删除
  1. 1 15
      test/run.sh

+ 1 - 15
test/run.sh

@@ -68,7 +68,7 @@ for conf in "${configs[@]}"; do
 	# Determine the full path to any newly-declared tests
 	confDir="$(dirname "$conf")"
 
-	for testName in ${globalTests[@]}; do
+	for testName in ${globalTests[@]} ${imageTests[@]}; do
 		[ "${testPaths[$testName]}" ] && continue
 
 		if [ -d "$confDir/tests/$testName" ]; then
@@ -79,20 +79,6 @@ for conf in "${configs[@]}"; do
 			testPaths[$testName]="$dir/tests/$testName"
 		fi
 	done
-
-	for image in ${!imageTests[@]}; do
-		for testName in ${imageTests[$image]}; do
-			[ "${testPaths[$testName]}" ] && continue
-
-			if [ -d "$confDir/tests/$testName" ]; then
-				# Test directory found relative to the conf file
-				testPaths[$testName]="$confDir/tests/$testName"
-			elif [ -d "$dir/tests/$testName" ]; then
-				# Test directory found in the main tests/ directory
-				testPaths[$testName]="$dir/tests/$testName"
-			fi
-		done
-	done
 done
 
 didFail=