framework/exectest.py: Optimize skips in Test.run()

Graphics / Mesa 3D Graphics Library / Piglit - Dylan Baker [gmail.com] - 17 April 2014 10:00 UTC

This optimizes the Test.check_for_skip_scenario() path. With this change there is a single if branch for skip, and a single alternate path for non-skip. Skip returns early, bypassing a bunch of processing overhead that is unnecessary.

2b13d77 framework/exectest.py: Optimize skips in Test.run()
framework/exectest.py | 39 ++++++++++++++++-----------------------
1 file changed, 16 insertions(+), 23 deletions(-)

Upstream: cgit.freedesktop.org


  • Share