MultiTestRunner: Make sure to point at src dir, for out of tree builds.

Factor out routine for executing the script commands.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77075 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Makefile b/test/Makefile
index cf1983f..d649174 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -2,7 +2,7 @@
 include $(LEVEL)/Makefile.common
 
 # Test in all immediate subdirectories if unset.
-TESTDIRS ?= .
+TESTDIRS ?= $(PROJ_SRC_DIR)
 
 ifndef TESTARGS
 ifdef VERBOSE