mirror of https://gitee.com/bigwinds/arangodb
List skipped filenames as a bunch, not one per line.
This commit is contained in:
parent
d3cc9981b8
commit
f6767d1fbd
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue