On 24 February 2017 at 15:58, Eric Engestrom <eric.engest...@imgtec.com> wrote: > On Thursday, 2017-02-23 16:43:09 +0000, Emil Velikov wrote: >> From: Emil Velikov <emil.veli...@collabora.com> >> >> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> >> --- >> src/compiler/glsl/tests/optimization-test | 13 ++++++++++++- >> 1 file changed, 12 insertions(+), 1 deletion(-) >> >> diff --git a/src/compiler/glsl/tests/optimization-test >> b/src/compiler/glsl/tests/optimization-test >> index ec0f09b125..d84b83cfaa 100755 >> --- a/src/compiler/glsl/tests/optimization-test >> +++ b/src/compiler/glsl/tests/optimization-test >> @@ -18,15 +18,26 @@ fi >> >> total=0 >> pass=0 >> +has_tests=0 >> >> echo "====== Generating tests ======" >> for dir in tests/*/; do >> if [ -e "${dir}create_test_cases.py" ]; then >> - cd $dir; $PYTHON2 create_test_cases.py; cd .. >> + cd $dir; >> + $PYTHON2 create_test_cases.py >> + if [ "x$?" = x0 ]; then > > if $PYTHON2 create_test_cases.py; then > ... Similar to the if which ... > ; then case, I'm not sure if these will fly on zsh/other shell(s).
Might if I opt for -ne 0 for now ? Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev