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
Merge requests
!26
Resolve "Make ERS AppName more descriptive"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Make ERS AppName more descriptive"
16-make-ers-appname-more-descriptive
into
master
Overview
10
Commits
30
Pipelines
9
Changes
14
All threads resolved!
Hide all comments
Merged
Jonas Ladefoged Holm
requested to merge
16-make-ers-appname-more-descriptive
into
master
6 years ago
Overview
10
Commits
30
Pipelines
9
Changes
6
All threads resolved!
Hide all comments
Expand
Closes
#16 (closed)
0
0
Merge request reports
Compare
version 7
version 9
96afc8bc
5 years ago
version 8
1b6848cf
5 years ago
version 7
febd3f22
5 years ago
version 6
1b6848cf
5 years ago
version 5
5c3eeeee
5 years ago
version 4
a0bfac77
5 years ago
version 3
2b348b1b
6 years ago
version 2
2b348b1b
6 years ago
version 1
8c4ff089
6 years ago
master (base)
and
latest version
latest version
249d21b9
30 commits,
5 years ago
version 9
96afc8bc
29 commits,
5 years ago
version 8
1b6848cf
21 commits,
5 years ago
version 7
febd3f22
22 commits,
5 years ago
version 6
1b6848cf
21 commits,
5 years ago
version 5
5c3eeeee
20 commits,
5 years ago
version 4
a0bfac77
19 commits,
5 years ago
version 3
2b348b1b
13 commits,
6 years ago
version 2
2b348b1b
17 commits,
6 years ago
version 1
8c4ff089
11 commits,
6 years ago
Show latest version
6 files
+
42
−
94
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
Script/UnitTests/FunctionalTests/FuncTestUtils/FileUtils.py deleted
100644 → 0
+
0
−
52
Options
def
createTestFiles
(
path
):
"
Creates 1 test file at the defined path with the following format: file0.data
"
# And I populate only the src folder with files to copy
for
x
in
range
(
1
):
open
(
str
(
path
)
+
'
/file
'
+
str
(
x
)
+
'
.data
'
,
"
w
"
).
close
()
class
BaseLineReplacer
():
"""
Base class used for replacing config file settings line by line.
If a match in the dictionary is found, it returns a new value from the match.
Otherwise it returns the same line untouched.
"""
def
__init__
(
self
):
self
.
pairs
=
{}
def
fixLine
(
self
,
line
):
for
k
,
v
in
self
.
pairs
.
iteritems
():
if
line
.
find
(
k
)
>
-
1
:
return
v
return
line
class
LocalCopyConfigLineReplacer
(
BaseLineReplacer
):
"""
This replaces the lines LogDir, DirList and CopyDir from the line, with
a path from the dict parsed to the constructor.
Expects the keywords
"
log
"
"
src
"
and
"
des
"
to be present in the parsed directory dictionary.
If a match in the dictionary is found, it returns a new value from the match.
Otherwise it returns the same line untouched.
"""
def
__init__
(
self
,
dirs
):
BaseLineReplacer
.
__init__
(
self
)
self
.
pairs
=
{
"
LogDir:
"
:
"
LogDir:
\'
"
+
dirs
[
"
log
"
]
+
"
\'\n
"
,
"
DirList:
"
:
"
DirList: [
\'
"
+
dirs
[
"
src
"
]
+
"
\'
,]
\n
"
,
"
CopyDir:
"
:
"
CopyDir:
\'
"
+
dirs
[
"
des
"
]
+
"
\'\n
"
}
class
EOSLineConfigLineReplacer
(
BaseLineReplacer
):
"""
This replaces the lines in a config, relevant to activating
ERS Logging, but to STDOUT instead of MTS streams.
If a match in the dictionary is found, it returns a new value from the match.
Otherwise it returns the same line untouched.
"""
def
__init__
(
self
):
BaseLineReplacer
.
__init__
(
self
)
self
.
pairs
=
{
"
ers_info:
"
:
"
ers_info:
\'\'\n
"
,
"
ers_warning:
"
:
"
ers_warning:
\'\'\n
"
,
"
ers_error:
"
:
"
ers_error:
\'\'\n
"
,
"
ers_debug:
"
:
"
ers_debug:
\'\'\n
"
,
"
ERSenabled:
"
:
"
ERSenabled: True
\n
"
}
\ No newline at end of file
Loading