Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions cscs-checks/system/slurm/cscs_usertools.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os
import reframe.utility.sanity as sn

from reframe.core.pipeline import RunOnlyRegressionTest
import reframe as rfm
import reframe.utility.sanity as sn


class SbucheckCommandCheck(RunOnlyRegressionTest):
def __init__(self, **kwargs):
super().__init__('slurm_cscs_usertools_sbucheck',
os.path.dirname(__file__), **kwargs)
@rfm.simple_test
class SbucheckCommandCheck(rfm.RunOnlyRegressionTest):
def __init__(self):
super().__init__()
self.valid_systems = ['daint:login', 'dom:login']
self.descr = 'Slurm CSCS usertools sbucheck'
self.executable = 'sbucheck'
Expand All @@ -21,10 +21,10 @@ def __init__(self, **kwargs):
self.maintainers = ['VK']


class MonthlyUsageCheck(RunOnlyRegressionTest):
def __init__(self, **kwargs):
super().__init__('slurm_cscs_usertools_monthly_usage',
os.path.dirname(__file__), **kwargs)
@rfm.simple_test
class MonthlyUsageCheck(rfm.RunOnlyRegressionTest):
def __init__(self):
super().__init__()
self.valid_systems = ['daint:login', 'dom:login']
self.descr = 'Slurm CSCS usertools monthly_usage'
self.executable = 'monthly_usage'
Expand All @@ -36,7 +36,3 @@ def __init__(self, **kwargs):
self.sanity_patterns = sn.assert_found(
r'Usage in Node hours for the Crays', self.stdout)
self.maintainers = ['VK']


def _get_checks(**kwargs):
return [SbucheckCommandCheck(**kwargs), MonthlyUsageCheck(**kwargs)]