Skip to content

Commit

Permalink
Updating uberenv to fix and issue with testing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbernede committed Feb 7, 2020
1 parent 6c9abca commit 3dffca0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/uberenv/uberenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,12 @@ def install(self):
install_cmd = "spack/bin/spack "
if self.opts["ignore_ssl_errors"]:
install_cmd += "-k "
install_cmd += "dev-build -d {} ".format(self.pkg_src_dir)
if not self.opts["install"]:
install_cmd += "-u {} ".format(self.pkg_final_phase)
if self.opts["run_tests"]:
install_cmd += "--test=root "
install_cmd += "dev-build -d {} -u {} ".format(self.pkg_src_dir,self.pkg_final_phase)
else:
install_cmd += "install "
if self.opts["run_tests"]:
install_cmd += "--test=root "
install_cmd += self.pkg_name + self.opts["spec"]
res = sexe(install_cmd, echo=True)
if res != 0:
Expand Down

0 comments on commit 3dffca0

Please sign in to comment.