Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
sepia-pub
mael
batmen
Commits
63e88813
Commit
63e88813
authored
3 years ago
by
Mael Madon
Browse files
Options
Downloads
Patches
Plain Diff
test: change storage folder for test logs
parent
2522d4e9
No related branches found
No related tags found
1 merge request
!1
User aware schedulers and cloud broker done
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/helper.py
+3
-3
3 additions, 3 deletions
test/helper.py
test/test_zexpected_output.py
+1
-1
1 addition, 1 deletion
test/test_zexpected_output.py
with
4 additions
and
4 deletions
test/helper.py
+
3
−
3
View file @
63e88813
...
...
@@ -31,7 +31,7 @@ failure-timeout: {self.failure_timeout}
write_file
(
filename
,
self
.
to_yaml
())
def
gen_batsim_cmd
(
platform
,
workload
,
output_dir
,
more_flags
):
return
f
"
batsim -p
'
{
platform
}
'
-w
'
{
workload
}
'
-e
'
{
output_dir
}
'
{
more_flags
}
"
return
f
"
batsim -p
'
{
platform
}
'
-w
'
{
workload
}
'
-e
'
{
output_dir
}
/
'
{
more_flags
}
"
def
write_file
(
filename
,
content
):
file
=
open
(
filename
,
"
w
"
)
...
...
@@ -55,9 +55,9 @@ def init_instance(test_name):
return
(
output_dir
,
robin_filename
,
schedconf_filename
)
def
has_expected_output
(
test_file
):
return
os
.
path
.
exists
(
'
test/expected_log/
'
+
test_file
+
'
_jobs.csv
'
)
return
os
.
path
.
exists
(
'
test/expected_log/
'
+
test_file
+
'
/
_jobs.csv
'
)
def
equals_expected_output
(
test_file
):
expected
=
'
test/expected_log/
'
+
test_file
+
'
_jobs.csv
'
obtained
=
'
test-out/
'
+
test_file
+
'
_jobs.csv
'
obtained
=
'
test-out/
'
+
test_file
+
'
/
_jobs.csv
'
return
filecmp
.
cmp
(
expected
,
obtained
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/test_zexpected_output.py
+
1
−
1
View file @
63e88813
...
...
@@ -3,5 +3,5 @@ from helper import *
def
test_expected_output
():
for
log_file
in
os
.
listdir
(
'
test/expected_log
'
):
expected
=
'
test/expected_log/
'
+
log_file
obtained
=
'
test-out/
'
+
log_file
obtained
=
'
test-out/
'
+
log_file
[:
-
9
]
+
'
/
'
+
log_file
[
-
9
:]
assert
filecmp
.
cmp
(
expected
,
obtained
)
\ No newline at end of file
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