Skip to content

Commit 0b43dfe

Browse files
committed
Bump test syntax
1 parent 168849d commit 0b43dfe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cscs-checks/prgenv/hip/build_hip.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def set_compile_options(self):
3939
f'-DHIP_PLATFORM={self.hip_platform}',
4040
]
4141

42-
@run_before('sanity')
42+
@sanity_function
4343
def set_sanity_patterns(self):
44-
self.sanity_patterns = sn.assert_found(r'nvcc:\s+NVIDIA', self.stdout)
44+
return sn.assert_found(r'nvcc:\s+NVIDIA', self.stdout)
4545

4646

4747
@rfm.simple_test
@@ -76,6 +76,6 @@ def set_env(self):
7676
self.variables = {'HIP_PATH': f'{self.hip_path}'}
7777
self.build_system.cxx = os.path.join(self.hip_path, 'bin', 'hipcc')
7878

79-
@run_before('sanity')
79+
@sanity_function
8080
def set_sanity(self):
81-
self.sanity_patterns = sn.assert_found(r'HelloWorld', self.stdout)
81+
return sn.assert_found(r'HelloWorld', self.stdout)

0 commit comments

Comments
 (0)