Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CastorScript
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
atlas-tdaq-software
CastorScript
Commits
60eca78a
Commit
60eca78a
authored
6 years ago
by
Fabrice Le Goff
Browse files
Options
Downloads
Patches
Plain Diff
ExcludeFileRegex fixes after test
parent
e553ea26
No related branches found
Branches containing commit
Tags
CastorScript-01-08-10
Tags containing commit
No related merge requests found
Pipeline
#623001
passed
6 years ago
Stage: test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Script/Conf.py
+1
-1
1 addition, 1 deletion
Script/Conf.py
Script/ManagerThread.py
+2
-1
2 additions, 1 deletion
Script/ManagerThread.py
Test/test_config.cfg
+3
-1
3 additions, 1 deletion
Test/test_config.cfg
with
6 additions
and
3 deletions
Script/Conf.py
+
1
−
1
View file @
60eca78a
...
...
@@ -197,7 +197,7 @@ class Conf:
self
.
DataFilePattern
=
cfg
.
DataFilePattern
try
:
self
.
ExcludeFileRegex
=
cfg
.
DataFilePattern
self
.
ExcludeFileRegex
=
cfg
.
ExcludeFileRegex
except
AttributeError
:
self
.
ExcludeFileRegex
=
None
...
...
This diff is collapsed.
Click to expand it.
Script/ManagerThread.py
+
2
−
1
View file @
60eca78a
...
...
@@ -13,6 +13,7 @@ import pprint
import
math
import
Constants
import
errno
import
re
from
utils
import
set_log_level
,
formatter
,
thread_id_string
from
itertools
import
chain
...
...
@@ -201,7 +202,7 @@ class ManagerThread(threading.Thread):
if
not
filename
in
self
.
CopyFileList
:
self
.
logger
.
debug
(
'
New file: %s
'
,
filename
)
if
self
.
conf
.
ExcludeFileRegex
and
re
.
match
(
self
.
conf
.
ExcludeFileRegex
,
filename
):
if
self
.
conf
.
ExcludeFileRegex
is
not
None
and
re
.
match
(
self
.
conf
.
ExcludeFileRegex
,
filename
):
self
.
logger
.
debug
(
'
ignoring file matching exclude regex: %s
'
,
filename
)
continue
...
...
This diff is collapsed.
Click to expand it.
Test/test_config.cfg
+
3
−
1
View file @
60eca78a
...
...
@@ -103,9 +103,11 @@ DirList: ['/tmp/atlascdr/']
# Unix
pathname pattern for file selection
# FilePattern:
['
*
.data', '
*
.out']
DataFilePattern:
['
*
.data',]
# Regex
file exclusion (after selection)
ExcludeFileRegex:
None
# Number
of files to be deleted before to update the list of files to be copied
nDel:
1
...
...
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