Пример #1
0
def test_is_skip_glx(mocker):
    """test.gleantest.GleanTest.is_skip: Does not skip when platform is glx."""
    opts = mocker.patch('framework.test.gleantest.options.OPTIONS',
                        new_callable=Options)
    opts.env['PIGLIT_PLATFORM'] = 'glx'

    test = GleanTest('foo')
    test.is_skip()
Пример #2
0
def test_is_skip_glx(mocker):
    """test.gleantest.GleanTest.is_skip: Does not skip when platform is glx."""
    opts = mocker.patch('framework.test.gleantest.options.OPTIONS',
                        new_callable=Options)
    opts.env['PIGLIT_PLATFORM'] = 'glx'

    test = GleanTest('foo')
    test.is_skip()
Пример #3
0
def test_is_skip_not_glx(mocker):
    """test.gleantest.GleanTest.is_skip: Skips when platform isn't glx."""
    opts = mocker.patch('framework.test.gleantest.options.OPTIONS',
                        new_callable=Options)
    opts.env['PIGLIT_PLATFORM'] = 'gbm'

    test = GleanTest('foo')
    with pytest.raises(_TestIsSkip):
        test.is_skip()
Пример #4
0
def test_is_skip_not_glx(mocker):
    """test.gleantest.GleanTest.is_skip: Skips when platform isn't glx."""
    opts = mocker.patch('framework.test.gleantest.options.OPTIONS',
                        new_callable=Options)
    opts.env['PIGLIT_PLATFORM'] = 'gbm'

    test = GleanTest('foo')
    with pytest.raises(_TestIsSkip):
        test.is_skip()
Пример #5
0
def test_is_skip_glx_egl():
    """test.gleantest.GleanTest.is_skip: Does not skip when platform is mixed_glx_egl
    """
    GleanTest.OPTS.env['PIGLIT_PLATFORM'] = 'mixed_glx_egl'
    test = GleanTest('foo')
    test.is_skip()
Пример #6
0
def test_is_skip_glx():
    """test.gleantest.GleanTest.is_skip: Does not skip when platform is glx"""
    GleanTest.OPTS.env['PIGLIT_PLATFORM'] = 'glx'
    test = GleanTest('foo')
    test.is_skip()
Пример #7
0
def test_is_skip_not_glx():
    """test.gleantest.GleanTest.is_skip: Skips when platform isn't glx"""
    GleanTest.OPTS.env['PIGLIT_PLATFORM'] = 'gbm'
    test = GleanTest('foo')
    test.is_skip()
Пример #8
0
def test_is_skip_glx_egl(mock_opts):
    """test.gleantest.GleanTest.is_skip: Does not skip when platform is mixed_glx_egl
    """
    mock_opts.env['PIGLIT_PLATFORM'] = 'mixed_glx_egl'
    test = GleanTest('foo')
    test.is_skip()
Пример #9
0
def test_is_skip_glx(mock_opts):
    """test.gleantest.GleanTest.is_skip: Does not skip when platform is glx"""
    mock_opts.env['PIGLIT_PLATFORM'] = 'glx'
    test = GleanTest('foo')
    test.is_skip()
Пример #10
0
def test_is_skip_not_glx(mock_opts):
    """test.gleantest.GleanTest.is_skip: Skips when platform isn't glx"""
    mock_opts.env['PIGLIT_PLATFORM'] = 'gbm'
    test = GleanTest('foo')
    test.is_skip()