summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2013-03-27 13:32:46 -0500
committerTom Gall <tom.gall@linaro.org>2013-03-27 13:32:46 -0500
commitf953bb3e1a887cc3a231e515dc293496001d082b (patch)
treed0faa97fc35d015b77c1fcb360d9f6d93f6b90d7
parent34036495d0d7bbde3923b763e21d860703a1ad14 (diff)
add "" around strings for comparisons and [] as part of the if check
-rwxr-xr-xandroid/scripts/piglit-run-glslparser.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/android/scripts/piglit-run-glslparser.sh b/android/scripts/piglit-run-glslparser.sh
index a536f70..bf1b5cc 100755
--- a/android/scripts/piglit-run-glslparser.sh
+++ b/android/scripts/piglit-run-glslparser.sh
@@ -6,8 +6,8 @@ set -x
find ${2} -name "*.frag" -or -name "*.vert" -print0 | while read -d $'\0' file
do
- RESULTEXPECTED=$(grep expect_result ${file} )
- case $RESULTEXPECTED in
+ RESULTFOUND=$(grep expect_result ${file} )
+ case $RESULTFOUND in
*fail*) RESULTEXPECTED="fail";;
*pass*) RESULTEXPECTED="pass";;
@@ -23,23 +23,23 @@ do
case $RESULT in
*"$PSTRING"*)
- if $RESULTEXPECTED = "pass"; then
- echo "${1} ${file}: pass"
+ if [ "$RESULTEXPECTED" = "pass" ]; then
+ echo "glslparser ${file}: pass"
else
- echo "${1} ${file}: fail"
+ echo "glslparser ${file}: fail"
fi
;;
- *"$SSTRING"*) echo "${1} ${file}: skip";;
+ *"$SSTRING"*) echo "glslparser ${file}: skip";;
*"$FSTRING"*)
- if $RESULTEXPECTED = "fail"; then
- echo "${1} ${file}: pass"
+ if [ "$RESULTEXPECTED" = "fail" ]; then
+ echo "glslparser ${file}: pass"
else
- echo "${1} ${file}: fail"
+ echo "glslparser ${file}: fail"
fi
;;
- *) echo "${1} ${file}: fail";;
+ *) echo "glslparser ${file}: fail";;
esac
done