damask-grid, damask-mesh: fix spack install --test=root (#26350)

This commit is contained in:
bernhardkaindl 2021-10-01 16:59:31 +02:00 committed by GitHub
parent 4078c5e537
commit ad8b8b3377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

@ -25,13 +25,12 @@ class DamaskGrid(CMakePackage):
values=('Debug', 'Release', 'DebugRelease'))
def cmake_args(self):
args = ['-DDAMASK_SOLVER:STRING=grid']
return args
@run_after('install')
@on_package_attributes(run_tests=True)
def execute(self):
damask_grid = Executable('DAMASK_grid')
damask_grid('--help')
with working_dir(self.build_directory):
damask_grid = Executable('src/DAMASK_grid')
damask_grid('--help')

View File

@ -25,13 +25,12 @@ class DamaskMesh(CMakePackage):
values=('Debug', 'Release', 'DebugRelease'))
def cmake_args(self):
args = ['-DDAMASK_SOLVER:STRING=mesh']
return args
@run_after('install')
@on_package_attributes(run_tests=True)
def execute(self):
damask_mesh = Executable('DAMASK_mesh')
damask_mesh('--help')
with working_dir(self.build_directory):
damask_mesh = Executable('src/DAMASK_mesh')
damask_mesh('--help')