소스 검색

fix test failure pointed out by nightly build

Mike Frysinger 19 년 전
부모
커밋
48d7cf6549
1개의 변경된 파일10개의 추가작업 그리고 6개의 파일을 삭제
  1. 10 6
      test/build/check_config_options.sh

+ 10 - 6
test/build/check_config_options.sh

@@ -1,16 +1,20 @@
 #!/bin/sh
 
+ret=0
+
 # Make sure nothing uses the ARCH_HAS_MMU option anymore
-ret=$(
-grep -rHI \
+result=$(
+grep -rsHI \
 	__ARCH_HAS_MMU__ ../.. \
 	| grep -v \
 		-e include/bits/uClibc_config.h \
-		-e test/build/check_config_options.sh
+		-e test/build/check_config_options.sh \
+		-e /.svn/
 )
-if test -n "$ret" ; then
+if test -n "$result" ; then
 	echo "The build system is incorrectly using ARCH_HAS_MMU:"
-	echo "$ret"
+	echo "$result"
+	ret=1
 fi
 
-exit 0
+exit $ret