metall: fix incorrect use of setup_build_environment (#23532)

This commit is contained in:
eugeneswalker 2021-05-10 09:26:19 -07:00 committed by GitHub
parent ad44c3ad51
commit ccdda9a74e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,10 +41,10 @@ def cmake_args(self):
# (https://github.com/spack/spack/pull/11115)
# This page has not been updated?
# https://spack-tutorial.readthedocs.io/en/latest/tutorial_advanced_packaging.html
def setup_build_environment(self, spack_env, run_env):
def setup_build_environment(self, env):
# Configure the directories for test
if self.run_tests:
spack_env.set(
env.set(
'METALL_TEST_DIR',
join_path(self.build_directory, 'build_test')
)