Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environments: activate/deactivate tests, support set -u #11942

Merged
merged 1 commit into from
Jul 20, 2019

Conversation

tgamblin
Copy link
Member

@tgamblin tgamblin commented Jul 5, 2019

After #4048 I tried running spack env activate and despacktivate and noticed some problems. Turned out they were with my environment, but I added shell tests for this stuff anyway. This actually ended up catching a bug in the code output by spack env deactivate --sh -- it now works properly with set -u.

  • Add shell tests to ensure that spack env activate, spack env deactivate, and despacktivate continue to work.

  • Also ensure that activate and deactivate both work with set -u

@tgamblin tgamblin requested a review from scheibelp July 5, 2019 21:35
@tgamblin tgamblin force-pushed the features/more-sh-tests-for-environments branch 2 times, most recently from 0c1dea4 to 704b8ad Compare July 6, 2019 02:36
@tgamblin tgamblin force-pushed the features/more-sh-tests-for-environments branch from 704b8ad to 761befe Compare July 15, 2019 17:59
@tgamblin tgamblin changed the title environments: add activate/deactivate tests, work wtih set -u environments: activate/deactivate tests, work wtih set -u Jul 15, 2019
@tgamblin tgamblin changed the title environments: activate/deactivate tests, work wtih set -u environments: activate/deactivate tests, support set -u Jul 15, 2019
- [x] Add shell tests to ensure that `spack env activate`, `spack env
  deactivate`, and `despacktivate` continue to work.

- [x] Also ensure that activate and deactivate both work with `set -u`
@tgamblin tgamblin force-pushed the features/more-sh-tests-for-environments branch from 761befe to 26feb74 Compare July 19, 2019 03:23
@tgamblin tgamblin merged commit 993ee7f into develop Jul 20, 2019
@tgamblin tgamblin deleted the features/more-sh-tests-for-environments branch July 20, 2019 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant