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()
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()
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()
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()
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()
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()
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()
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()