fixing pep8 problems for test verify tox job
[integration/test.git] / tools / robot_check / tidy.sh
1 #!/usr/bin/env sh
2 # Convenience script to run check on all .robot files in the project.
3 # Run with the "quiet" argument to get rid of the non-error output.
4
5 if test "${1-loud}" = "quiet"; then
6   COMMAND="quiet"
7 elif test "${1-loud}" = "tidy"; then
8   COMMAND="tidy"
9 else
10   COMMAND="check"
11 fi
12 BASE=`dirname ${0}`
13 cd $BASE
14 BASE=`pwd`
15 cd ../..
16 DIRLIST=""
17 for Dir in *; do
18   if test -d $Dir; then
19     DIRLIST="$DIRLIST $Dir"
20   fi
21 done
22 python $BASE/tidytool.py $COMMAND $DIRLIST