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
a8fccaec
Commit
a8fccaec
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
update tests
parent
6aecbab0
No related branches found
No related tags found
2 merge requests
!107
Update log function names and docs
,
!96
Simplify log file path generation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_mpsd_software.py
+5
-5
5 additions, 5 deletions
tests/test_mpsd_software.py
with
5 additions
and
5 deletions
tests/test_mpsd_software.py
+
5
−
5
View file @
a8fccaec
...
...
@@ -417,16 +417,16 @@ def test_get_available_package_sets():
)
def
test_create_log_file_name
s
():
def
test_create_log_file_name
():
"""
Test that the log file names are created correctly.
"""
create_log_file_name
s
=
mod
.
create_log_file_name
s
create_log_file_name
=
mod
.
create_log_file_name
mpsd_release
=
"
dev-23a
"
microarch
=
"
sandybridge
"
date
=
datetime
.
datetime
.
now
().
replace
(
microsecond
=
0
).
isoformat
()
action
=
"
install
"
package_set
=
"
foss2021a
"
# test build_log_file_name generation
build_log_file_name
=
create_log_file_name
s
(
build_log_file_name
=
create_log_file_name
(
microarch
=
microarch
,
mpsd_release
=
mpsd_release
,
date
=
date
,
...
...
@@ -437,7 +437,7 @@ def test_create_log_file_names():
build_log_file_name
==
f
"
{
mpsd_release
}
_
{
microarch
}
_
{
date
}
_BUILD_
{
package_set
}
_
{
action
}
.log
"
)
installer_log_file_name
=
create_log_file_name
s
(
installer_log_file_name
=
create_log_file_name
(
microarch
=
microarch
,
mpsd_release
=
mpsd_release
,
date
=
date
,
...
...
@@ -448,7 +448,7 @@ def test_create_log_file_names():
==
f
"
{
mpsd_release
}
_
{
microarch
}
_
{
date
}
_APEX_
{
action
}
.log
"
)
# test no build log file for incorrect action
build_log_file_name
=
create_log_file_name
s
(
build_log_file_name
=
create_log_file_name
(
microarch
=
microarch
,
mpsd_release
=
mpsd_release
,
date
=
date
,
...
...
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