Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
grid5000
reference-repository
Commits
5bbac7d3
Commit
5bbac7d3
authored
5 years ago
by
Lucas Nussbaum
Browse files
Options
Downloads
Patches
Plain Diff
[spec] rubocop fixes
parent
1f76ca16
No related branches found
Branches containing commit
No related tags found
1 merge request
!68
Bug11327 - add optional cores_affinity definition to force cores<->GPU allocation
Pipeline
#115159
passed
5 years ago
Stage: validate
Stage: generate
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/oar_properties2_spec.rb
+4
-4
4 additions, 4 deletions
spec/oar_properties2_spec.rb
with
4 additions
and
4 deletions
spec/oar_properties2_spec.rb
+
4
−
4
View file @
5bbac7d3
...
...
@@ -4,8 +4,8 @@ require 'spec_helper'
def
gen_stub
(
file
,
site
,
cluster
)
data
=
load_data_hierarchy
data
[
'sites'
].
delete_if
{
|
k
,
v
|
site
!=
k
}
data
[
'sites'
].
each_pair
do
|
site_uid
,
s
ite
|
s
ite
[
'clusters'
].
delete_if
{
|
k
,
v
|
cluster
!=
k
}
data
[
'sites'
].
each_pair
do
|
site_uid
,
s
|
s
[
'clusters'
].
delete_if
{
|
k
,
v
|
cluster
!=
k
}
end
data
.
delete
(
'network_equipments'
)
data
[
'sites'
][
'fakesite'
]
=
data
[
'sites'
][
site
]
...
...
@@ -60,7 +60,7 @@ def check_oar_properties(o)
end
# stdout
ofile
=
"
#{
specdir
}
/output/
#{
o
[
:case
]
}
_
#{
type
}
_stdout.txt"
if
not
File
::
exist
s
?
(
ofile
)
if
not
File
::
exist?
(
ofile
)
puts
"Output file
#{
ofile
}
did not exist, created."
File
::
open
(
ofile
,
"w"
)
{
|
fd
|
fd
.
print
output
[
:stdout
]
}
ofile_data
=
output
[
:stdout
]
...
...
@@ -70,7 +70,7 @@ def check_oar_properties(o)
expect
(
output
[
:stdout
]).
to
eq
(
ofile_data
)
# stderr
ofile
=
"
#{
specdir
}
/output/
#{
o
[
:case
]
}
_
#{
type
}
_stderr.txt"
if
not
File
::
exist
s
?
(
ofile
)
if
not
File
::
exist?
(
ofile
)
puts
"Output file
#{
ofile
}
did not exist, created."
File
::
open
(
ofile
,
"w"
)
{
|
fd
|
fd
.
print
output
[
:stderr
]
}
ofile_data
=
output
[
:stderr
]
...
...
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