Skip to content
Snippets Groups Projects
Commit 7b3741a6 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Handle cases where in/out/bm dirs are not set

parent 434e095b
No related branches found
No related tags found
1 merge request!38MNT: Ignore any candidate tests within output/benchmark/input data directories
Pipeline #26620 canceled
......@@ -234,12 +234,15 @@ class Pyfeeds:
# Do not consider anything within the
# input, benchmark, or output directories
indir = pl.Path(op.abspath(self.inputDir))
bmdir = pl.Path(op.abspath(self.benchmarkDir))
outdir = pl.Path(op.abspath(self.outputDir))
testDirs = [td for td in testDirs if indir not in pl.Path(td).parents]
testDirs = [td for td in testDirs if bmdir not in pl.Path(td).parents]
testDirs = [td for td in testDirs if outdir not in pl.Path(td).parents]
def filterOut(dirs, filterDir):
if filterDir is None:
return
fdir = pl.Path(op.abspath(filterDir))
return [td for td in dirs if pdir not in pl.Path(td).parents]
testDirs = filterOut(testDirs, self.outputDir)
testDirs = filterOut(testDirs, self.benchmarkDir)
testDirs = filterOut(testDirs, self.inputDir)
# Find the deepest directory in
# the file system which contains
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment