Skip to content

Fixed bug in spack env due to missing argument.#5280

Merged
alalazo merged 2 commits intospack:developfrom
epfl-scitas:fixes/missing_arg_in_env
Sep 5, 2017
Merged

Fixed bug in spack env due to missing argument.#5280
alalazo merged 2 commits intospack:developfrom
epfl-scitas:fixes/missing_arg_in_env

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Sep 4, 2017

This command broke after #5109. It was using the default value for the dirty argument in setup_package. Now it adopts the same logic as in spack install. Trivial unit test included.

This command broke after spack#5109. It was using the default value for the
"dirty" argument in `setup_package`. Now it adopts the same logic as
in `spack install`. Trivial unit test included.
@alalazo alalazo added bug Something isn't working ready labels Sep 4, 2017
@alalazo alalazo requested review from becker33 and tgamblin September 4, 2017 10:50
Comment thread lib/spack/spack/test/cmd/env.py Outdated
])
@pytest.mark.usefixtures('config')
def test_it_just_runs(pkg):
info(pkg)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be hard to get 100% coverage on this one. Have an example with and without --, an example with multiple specs that's expected to crash, and an example with no command.

@skosukhin
Copy link
Copy Markdown
Member

There is a small issue. The help message is confusing:

--clean     clean environment before installing package
--dirty     do NOT clean environment before installing

The 'env' command doesn't install anything.

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Sep 4, 2017

@skosukhin You're completely right. I'll fix that asap.

@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Sep 5, 2017

@adamjstewart Fine with you to merge?

@adamjstewart
Copy link
Copy Markdown
Member

Yeah, it's not 100%, but it's a lot better than it was before. Thanks!

@alalazo alalazo merged commit 41d8981 into spack:develop Sep 5, 2017
@alalazo alalazo deleted the fixes/missing_arg_in_env branch September 5, 2017 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants