No need to add the test script containing directory to sys.path more than once.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@106929 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/dotest.py b/test/dotest.py
index 33d6694..5a06bb3 100755
--- a/test/dotest.py
+++ b/test/dotest.py
@@ -112,7 +112,8 @@
 
         if '.py' == os.path.splitext(name)[1] and name.startswith(prefix):
             # We found a pattern match for our test case.  Add it to the suite.
-            sys.path.append(dir)
+            if not sys.path.count(dir):
+                sys.path.append(dir)
             base = os.path.splitext(name)[0]
             suite.addTests(unittest.defaultTestLoader.loadTestsFromName(base))