示例#1
0
 def __init__(self, logger=None, check=None):
     super().__init__(
         logger,
         {
             # Here we only set the format specifiers that do not
             # correspond directly to check attributes
             '__rfm_check__': check,
             'check_name': 'reframe',
             'check_jobid': None,
             'check_job_completion_time': None,
             'check_job_completion_time_unix': None,
             'check_info': 'reframe',
             'check_system': None,
             'check_partition': None,
             'check_environ': None,
             'check_perf_var': None,
             'check_perf_value': None,
             'check_perf_ref': None,
             'check_perf_lower_thres': None,
             'check_perf_upper_thres': None,
             'check_perf_unit': None,
             'osuser': osext.osuser(),
             'osgroup': osext.osgroup(),
             'version': osext.reframe_version(),
         })
     self.check = check
     self.colorize = False
示例#2
0
 def __init__(self):
     super().__init__()
     self.valid_systems = ['daint:login', 'dom:login']
     self.executable = 'srun'
     self.executable_opts = ['-A', osext.osgroup(), 'hostname']
     self.sanity_patterns = sn.assert_found(
         r'ERROR: you must specify -C with one of the following: mc,gpu',
         self.stderr)
示例#3
0
class RequiredConstraintCheck(SlurmSimpleBaseCheck):
    valid_systems = ['daint:login', 'dom:login']
    executable = 'srun'
    executable_opts = ['-A', osext.osgroup(), 'hostname']

    @sanity_function
    def assert_found_missing_constraint(self):
        return sn.assert_found(
            r'ERROR: you must specify -C with one of the following: mc,gpu',
            self.stderr)