compiler/glsl/tests: Make tests python3 safe
authorDylan Baker <dylan@pnwbakers.com>
Thu, 16 Aug 2018 21:17:24 +0000 (14:17 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 22 Aug 2018 15:41:01 +0000 (08:41 -0700)
commit477d4b9960ae8b7524806a9dff1d91b0546ec0f2
tree7b721cbc9ae31e392bd688f6ddc9412e39fa9e64
parent6ea5718318834cb3b7972d1e38ddd7bbeff36f08
compiler/glsl/tests: Make tests python3 safe

v2: - explicitly decode the output of subprocesses
    - handle bytes and string types consistently rather than relying on
      python 2's coercion for bytes and ignoring them in python 3
v3: - explicitly set encode as well as decode
    - python 2.7 and 3.x `bytes` instead of defining an alias

Reviewed-by: Mathieu Bridon <bochecha@daitauha.fr>
src/compiler/glsl/tests/lower_jump_cases.py
src/compiler/glsl/tests/optimization_test.py
src/compiler/glsl/tests/sexps.py