def test_check_logs(self, sandbox):
    if (not sandbox.log_dir):
        pytest.skip()
    assert sandbox.logs
    error_pattern = 'canceled|crashed'
    assert utils.check_logs(sandbox.logs, error_pattern)
def test_check_logs(self, sandbox):
    if (not sandbox.log_dir):
        pytest.skip()
    assert sandbox.logs
    error_pattern = 'canceled|crashed'
    assert utils.check_logs(sandbox.logs, error_pattern)