Commit 95e65771 authored by Andrey Kamaev's avatar Andrey Kamaev

Minor improvements: reduced verbosity of positioning tests; run.py - filter out…

Minor improvements: reduced verbosity of positioning tests; run.py - filter out non-executables on windows
parent 1a9758c0
......@@ -135,7 +135,7 @@ void CV_VideoPositioningTest::run_test(int method)
continue;
string file_path = src_dir + "video/big_buck_bunny." + ext[i];
printf("\nReading video file in %s...\n", file_path.c_str());
ts->printf(cvtest::TS::LOG, "\nReading video file in %s...\n", file_path.c_str());
CvCapture* cap = cvCreateFileCapture(file_path.c_str());
......
......@@ -381,6 +381,8 @@ class RunInfo(object):
def isTest(self, fullpath):
if not os.path.isfile(fullpath):
return False
if self.targetos == "nt" and not fullpath.endswith(".exe"):
return False
if hostos == self.targetos:
return os.access(fullpath, os.X_OK)
if self.targetos == "android" and fullpath.endswith(".apk"):
......
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