Skip to content

Adding --log-format to spack install alway returns exit code 0 #5378

@pramodskumbhar

Description

@pramodskumbhar

Here is an example:

$ spack install --log-format=junit --dirty coreneuron +gpu %pgi
.....
==> No patches needed for coreneuron
==> Building coreneuron [CMakePackage]
==> Executing phase: 'cmake'
==> Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j16'
See build log for details:
.....

$ echo $?
0

Without --log-format:

$ spack install --dirty coreneuron +gpu %pgi
....
==> Executing phase: 'cmake'
==> Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j16'
See build log for details:
....

$ echo $?
1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions