From: Andrey Kamaev Date: Fri, 27 Apr 2012 19:13:58 +0000 (+0000) Subject: Minor improvements: reduced verbosity of positioning tests; run.py - filter out non... X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~1964 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95e657714f30405a2b4f45f268bd410110ab2c4d;p=platform%2Fupstream%2Fopencv.git Minor improvements: reduced verbosity of positioning tests; run.py - filter out non-executables on windows --- diff --git a/modules/highgui/test/test_positioning.cpp b/modules/highgui/test/test_positioning.cpp index 49b771e..0cbfec4 100644 --- a/modules/highgui/test/test_positioning.cpp +++ b/modules/highgui/test/test_positioning.cpp @@ -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()); diff --git a/modules/ts/misc/run.py b/modules/ts/misc/run.py index 516b5eb..505234d 100644 --- a/modules/ts/misc/run.py +++ b/modules/ts/misc/run.py @@ -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"):