test/TestCommon.gmk
changeset 47285 7513299d1cd0
parent 47218 918745561887
child 47329 43b33ee91ea0
--- a/test/TestCommon.gmk	Wed Sep 27 16:47:07 2017 -0700
+++ b/test/TestCommon.gmk	Thu Sep 28 11:20:16 2017 +0100
@@ -273,7 +273,7 @@
 prep:
 	@$(MKDIR) -p $(ABS_TEST_OUTPUT_DIR)
 	@$(MKDIR) -p `$(DIRNAME) $(ARCHIVE_BUNDLE)`
-	@if [ ! -d $(TEST_ROOT)/../.hg ] ; then                                   \
+	@if [ ! -d $(TEST_ROOT)/../../.hg ] && [ ! -d $(TEST_ROOT)/../../../.hg ]; then  \
 	  $(FIND) $(TEST_ROOT) \( -name \*.dll -o -name \*.DLL -o -name \*.so \)  \
 	        -exec $(CHMOD) a+rx {} \; ;                                       \
 	fi