# look for test in guest tests
test_file=
-if [ -f $1 ]; then
- test_file=$1
+if [ -f "$1" ]; then
+ test_file="$1"
fi
# look for test in guest tests
-if [ -f $1.py ]; then
- test_file=$1.py
+if [ -f "$1.py" ]; then
+ test_file="$1.py"
fi
# error if not found yet
-if [ $test_file = "" ]; then
+if [ "$test_file" = "" ]; then
echo "Could not find $1!"
exit 2
fi
# run pep8
echo "pep8:"
-pep8 $test_file
+pep8 "$test_file"
pep8_return=$?
echo
# done
echo Done checking
if [[ $pylint_return == 0 && $pep8_return == 0 ]]; then
- echo Everything seems to be fine
+ echo "Everything seems to be fine"
else
- echo Please correct
+ echo "Please correct"
fi