Remove tabs in robot files in favour of spaces, add chek in stage-test
[osm/tests.git] / devops-stages / stage-test.sh
index c5ca053..abc03e2 100755 (executable)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 # python3 -m rflint testsuites
-echo "TEST"
+echo "Checking tabs in robot files. No tabs should be present"
+tabs_in_testsuite="y"
+tabs_in_lib="y"
+! grep -ri "   " robot-systest/testsuite && tabs_in_testsuite=""
+! grep -ri "   " robot-systest/lib && tabs_in_lib=""
+[ -n "${tabs_in_testsuite}" ] && echo "There are tabs in robot-systest/testsuite" && exit 1
+[ -n "${tabs_in_lib}" ] && echo "There are tabs in robot-systest/lib" && exit 1
+echo "No tabs are present in robot files"
+exit 0
+