コード例 #1
0
ファイル: test_gleantest.py プロジェクト: techtonik/piglit
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
ファイル: test_gleantest.py プロジェクト: techtonik/piglit
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
ファイル: gleantest_tests.py プロジェクト: krnowak/piglit
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
ファイル: gleantest_tests.py プロジェクト: krnowak/piglit
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
ファイル: gleantest_tests.py プロジェクト: krnowak/piglit
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
ファイル: gleantest_tests.py プロジェクト: Endle/piglit-gsoc
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
ファイル: gleantest_tests.py プロジェクト: Endle/piglit-gsoc
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
ファイル: gleantest_tests.py プロジェクト: Endle/piglit-gsoc
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()