Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Colas Pomies
LbNightlyTools
Commits
6974c1dc
Commit
6974c1dc
authored
Apr 22, 2015
by
cpomies
Browse files
Modified to accept new function name in EnabledSlots
parent
f3ce8933
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/LbNightlyTools/tests/test_enabled_slots_script.py
View file @
6974c1dc
...
...
@@ -78,8 +78,8 @@ def test_one_file_json_chmod_111():
with
open
(
'configs/lhcb-TEST.json'
,
'w'
)
as
slot_file
:
slot_file
.
write
(
json
.
dumps
(
conf_data
))
os
.
chmod
(
'configs/lhcb-TEST.json'
,
0111
)
slots
=
EnabledSlots
.
Script
().
extract
F
rom
J
son
(
'lhcb-*.json'
)
EnabledSlots
.
Script
().
write
F
iles
(
slots
,
'slot-param-{0}.txt'
)
slots
=
EnabledSlots
.
Script
().
extract
_f
rom
_j
son
(
'lhcb-*.json'
)
EnabledSlots
.
Script
().
write
_f
iles
(
slots
,
'slot-param-{0}.txt'
)
retval
=
EnabledSlots
.
Script
().
run
([
'slot-param-{0}.txt'
])
assert
retval
==
0
assert
exists
(
join
(
'configs/lhcb-TEST.json'
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment