Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
MPSD Computational Science
mpsd-software-manager
Commits
67293f36
Commit
67293f36
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
update test_create_log_file_name without microarch input
parent
ad0b1808
No related branches found
No related tags found
1 merge request
!108
Use mpsd microarch consistently
Pipeline
#375492
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_mpsd_software.py
+1
-4
1 addition, 4 deletions
tests/test_mpsd_software.py
with
1 addition
and
4 deletions
tests/test_mpsd_software.py
+
1
−
4
View file @
67293f36
...
@@ -421,13 +421,12 @@ def test_create_log_file_name():
...
@@ -421,13 +421,12 @@ def test_create_log_file_name():
"""
Test that the log file names are created correctly.
"""
"""
Test that the log file names are created correctly.
"""
create_log_file_name
=
mod
.
create_log_file_name
create_log_file_name
=
mod
.
create_log_file_name
mpsd_release
=
"
dev-23a
"
mpsd_release
=
"
dev-23a
"
microarch
=
"
sandybridge
"
microarch
=
mod
.
get_native_microarch
()
date
=
datetime
.
datetime
.
now
().
replace
(
microsecond
=
0
).
isoformat
()
date
=
datetime
.
datetime
.
now
().
replace
(
microsecond
=
0
).
isoformat
()
action
=
"
install
"
action
=
"
install
"
package_set
=
"
foss2021a
"
package_set
=
"
foss2021a
"
# test build_log_file_name generation
# test build_log_file_name generation
build_log_file_name
=
create_log_file_name
(
build_log_file_name
=
create_log_file_name
(
microarch
=
microarch
,
mpsd_release
=
mpsd_release
,
mpsd_release
=
mpsd_release
,
date
=
date
,
date
=
date
,
action
=
action
,
action
=
action
,
...
@@ -438,7 +437,6 @@ def test_create_log_file_name():
...
@@ -438,7 +437,6 @@ def test_create_log_file_name():
==
f
"
{
mpsd_release
}
_
{
microarch
}
_
{
date
}
_BUILD_
{
package_set
}
_
{
action
}
.log
"
==
f
"
{
mpsd_release
}
_
{
microarch
}
_
{
date
}
_BUILD_
{
package_set
}
_
{
action
}
.log
"
)
)
installer_log_file_name
=
create_log_file_name
(
installer_log_file_name
=
create_log_file_name
(
microarch
=
microarch
,
mpsd_release
=
mpsd_release
,
mpsd_release
=
mpsd_release
,
date
=
date
,
date
=
date
,
action
=
action
,
action
=
action
,
...
@@ -449,7 +447,6 @@ def test_create_log_file_name():
...
@@ -449,7 +447,6 @@ def test_create_log_file_name():
)
)
# test no build log file for incorrect action
# test no build log file for incorrect action
build_log_file_name
=
create_log_file_name
(
build_log_file_name
=
create_log_file_name
(
microarch
=
microarch
,
mpsd_release
=
mpsd_release
,
mpsd_release
=
mpsd_release
,
date
=
date
,
date
=
date
,
action
=
"
status
"
,
action
=
"
status
"
,
...
...
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