glsl/tests/optimization-test: 'echo' only folders which has generators

The current "let's print any folder which exists" is simply confusing.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Emil Velikov
2017-02-27 18:58:06 +00:00
committed by Emil Velikov
parent 79a95f19e6
commit ee8aea3572

View File

@@ -34,6 +34,7 @@ ORIGDIR=`pwd`
echo "====== Generating tests ======"
for dir in $srcdir/glsl/tests/*/; do
if [ -e "${dir}create_test_cases.py" ]; then
echo "$dir"
# construct the correct builddir
completedir="$abs_builddir/glsl/tests/`echo ${dir} | sed 's|.*/glsl/tests/||g'`"
mkdir -p $completedir
@@ -44,7 +45,6 @@ for dir in $srcdir/glsl/tests/*/; do
fi
cd ..
fi
echo "$dir"
done
cd "$ORIGDIR"