Exemple #1
0
def test_disabled_lock_extra_config():
    conf = {
        'commands': {
            'testdisabledlock': {
                'command': 'true',
                'lockfile': {
                    'timeout': 100,
                    'disabled': True,
                },
            },
        },
    }
    with assert_raises(AssertionError):
        run_process(conf, 'testdisabledlock')
Exemple #2
0
def check_memory_invalid(invalid_job_desc):
    with patch('resource.setrlimit'):
        with assert_raises(Exception):
            set_memory_limit(invalid_job_desc)