From 3d9018f0191304c3f24816530a3552d57a557428 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 29 Aug 2012 19:16:11 +0400 Subject: [PATCH] Fix run.py version control detection when used outide of OpenCV build --- modules/ts/misc/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ts/misc/run.py b/modules/ts/misc/run.py index f2c213e..09db7dc 100644 --- a/modules/ts/misc/run.py +++ b/modules/ts/misc/run.py @@ -339,6 +339,8 @@ class RunInfo(object): self.tests = self.getAvailableTestApps() def getVCVersion(self, root_path): + if not root_path: + return None if os.path.isdir(os.path.join(root_path, ".svn")): return self.getSvnVersion(root_path) elif os.path.isdir(os.path.join(root_path, ".git")): -- 2.7.4