Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
eic_tools
Spack
Commits
b4f52f01
Commit
b4f52f01
authored
5 years ago
by
Gregory Becker
Browse files
Options
Downloads
Patches
Plain Diff
improve logging and add junit basics
parent
727df430
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/spack/cmd/test.py
+5
-2
5 additions, 2 deletions
lib/spack/spack/cmd/test.py
lib/spack/spack/reporters/junit.py
+3
-0
3 additions, 0 deletions
lib/spack/spack/reporters/junit.py
with
8 additions
and
2 deletions
lib/spack/spack/cmd/test.py
+
5
−
2
View file @
b4f52f01
...
...
@@ -7,6 +7,7 @@
import
os
import
argparse
import
textwrap
import
datetime
import
llnl.util.tty
as
tty
...
...
@@ -89,8 +90,10 @@ def test(parser, args):
log_dir
=
os
.
getcwd
()
log_file
=
os
.
path
.
join
(
log_dir
,
args
.
log_file
)
else
:
log_file
=
os
.
path
.
join
(
os
.
getcwd
(),
'
test-%s
'
%
specs_to_test
[
0
].
dag_hash
())
now
=
datetime
.
datetime
.
now
()
log_file
=
os
.
path
.
join
(
os
.
getcwd
(),
'
test-%s
'
%
now
.
strftime
(
'
%Y-%m-%d_%H:%M:%S
'
))
reporter
.
filename
=
log_file
reporter
.
specs
=
specs_to_test
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/reporters/junit.py
+
3
−
0
View file @
b4f52f01
...
...
@@ -27,3 +27,6 @@ def build_report(self, filename, report_data):
env
=
spack
.
tengine
.
make_environment
()
t
=
env
.
get_template
(
self
.
template_file
)
f
.
write
(
t
.
render
(
report_data
))
def
test_report
(
self
,
filename
,
report_data
):
self
.
build_report
(
filename
,
report_data
)
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