From f6767d1fbddac088cc71b51e691aaa24c6e32483 Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Thu, 13 Aug 2015 14:26:01 +0200 Subject: [PATCH] List skipped filenames as a bunch, not one per line. --- Documentation/Scripts/generateExamples.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/Scripts/generateExamples.py b/Documentation/Scripts/generateExamples.py index 3786542276..8ac18c355e 100644 --- a/Documentation/Scripts/generateExamples.py +++ b/Documentation/Scripts/generateExamples.py @@ -65,6 +65,12 @@ OutputDir = "/tmp/" RunTests = {} +################################################################################ +### A list of tests that were skipped by the users request. +################################################################################ + +filterTestList = [] + ################################################################################ ### @brief arangosh expect ### @@ -323,7 +329,7 @@ regularStartLine = re.compile(r'^(/// )? *@EXAMPLE_ARANGOSH_OUTPUT{([^}]*)}') runLine = re.compile(r'^(/// )? *@EXAMPLE_ARANGOSH_RUN{([^}]*)}') def matchStartLine(line, filename): - global regularStartLine, errorStartLine, runLine, FilterForTestcase + global regularStartLine, errorStartLine, runLine, FilterForTestcase, filterTestList errorName = "" m = regularStartLine.match(line) @@ -337,7 +343,7 @@ def matchStartLine(line, filename): sys.exit(1) # if we match for filters, only output these! if ((FilterForTestcase != None) and not FilterForTestcase.match(name)): - print >> sys.stderr, "filtering test case %s" %name + filterTestList.append(name) return("", STATE_BEGIN); return (name, STATE_ARANGOSH_OUTPUT) @@ -354,7 +360,7 @@ def matchStartLine(line, filename): # if we match for filters, only output these! if ((FilterForTestcase != None) and not FilterForTestcase.match(name)): - print >> sys.stderr, "filtering test case %s" %name + filterTestList.append(name) return("", STATE_BEGIN); ArangoshFiles[name] = True @@ -677,6 +683,7 @@ def generateTestCases(): ### @brief main ################################################################################ loopDirectories() +print >> sys.stderr, "filtering test cases %s" %(filterTestList) generateArangoshHeader() generateSetupFunction()