Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NaviX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
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
ETP-HTC
NaviX
Commits
9e03d88f
There was a problem fetching the pipeline summary.
Commit
9e03d88f
authored
5 years ago
by
Christoph Heidecker
Browse files
Options
Downloads
Patches
Plain Diff
bug fix for non-root path input strings
parent
fc653dbd
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
navix/replygenerator/generate_file_list.py
+3
-1
3 additions, 1 deletion
navix/replygenerator/generate_file_list.py
tests/Test_replygenerator_generate_file_list.py
+8
-1
8 additions, 1 deletion
tests/Test_replygenerator_generate_file_list.py
with
11 additions
and
2 deletions
navix/replygenerator/generate_file_list.py
+
3
−
1
View file @
9e03d88f
...
...
@@ -127,7 +127,9 @@ def get_files_to_search_from_data(queue_logging, thread_num, data):
# if it is still empty it should have read all -> break loop
break
try
:
files_to_search_array
.
append
(
"
/
"
+
((
data
.
split
(
'
root://
'
,
1
)[
1
]).
split
(
"
//
"
,
1
)[
1
]))
splittedString
=
data
.
split
(
'
root://
'
,
1
)
if
len
(
splittedString
)
>
1
:
files_to_search_array
.
append
(
"
/
"
+
((
splittedString
[
1
]).
split
(
"
//
"
,
1
)[
1
]))
except
Exception
as
e
:
queue_logging
.
put
(
"
WARNI:
"
+
str
(
thread_num
)
+
"
: Failed to append
"
+
str
((
"
/
"
+
((
data
.
split
(
'
root://
'
,
1
)[
1
]).
split
(
"
//
"
,
1
)[
1
])))
...
...
This diff is collapsed.
Click to expand it.
tests/Test_replygenerator_generate_file_list.py
+
8
−
1
View file @
9e03d88f
...
...
@@ -68,7 +68,14 @@ class TestGenerateFileList(TestCase):
files_to_search_array
,
input_tmp
=
get_files_to_search_from_data
(
self
.
logger
,
self
.
thread_num
,
data
)
self
.
assertEqual
(
files_to_search_array
,
[
'
/address2
'
,
'
/address3
'
])
self
.
assertEqual
(
input_tmp
,
expected_input_tmp
)
data
=
"
file://PreRAWskimmed_53632.root
"
expected_input_tmp
=
"
file://PreRAWskimmed_53632.root
"
files_to_search_array
,
input_tmp
=
get_files_to_search_from_data
(
self
.
logger
,
self
.
thread_num
,
data
)
print
(
files_to_search_array
,
input_tmp
)
self
.
assertEqual
(
files_to_search_array
,
[])
self
.
assertEqual
(
input_tmp
,
expected_input_tmp
)
self
.
logger
.
put
(
"
DEBUG: Tested function:
'
test_get_files_to_search_from_data
'
appears to be fine.
"
)
return
...
...
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