Commit 3d9018f0 authored by Andrey Kamaev's avatar Andrey Kamaev

Fix run.py version control detection when used outide of OpenCV build

parent ee2bebf5
...@@ -339,6 +339,8 @@ class RunInfo(object): ...@@ -339,6 +339,8 @@ class RunInfo(object):
self.tests = self.getAvailableTestApps() self.tests = self.getAvailableTestApps()
def getVCVersion(self, root_path): def getVCVersion(self, root_path):
if not root_path:
return None
if os.path.isdir(os.path.join(root_path, ".svn")): if os.path.isdir(os.path.join(root_path, ".svn")):
return self.getSvnVersion(root_path) return self.getSvnVersion(root_path)
elif os.path.isdir(os.path.join(root_path, ".git")): elif os.path.isdir(os.path.join(root_path, ".git")):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment