Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pyfeeds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
pyfeeds
Commits
7b3741a6
Commit
7b3741a6
authored
4 months ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
RF: Handle cases where in/out/bm dirs are not set
parent
434e095b
No related branches found
No related tags found
1 merge request
!38
MNT: Ignore any candidate tests within output/benchmark/input data directories
Pipeline
#26620
canceled
4 months ago
Stage: test
Stage: fsl-ci-build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfeeds/main.py
+9
-6
9 additions, 6 deletions
pyfeeds/main.py
with
9 additions
and
6 deletions
pyfeeds/main.py
+
9
−
6
View file @
7b3741a6
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment