X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=devops-stages%2Fstage-test.sh;h=abc03e25ac928820093aa698cd250c0dcff2e910;hb=refs%2Fchanges%2F07%2F12107%2F5;hp=c5ca053248202e12c28f4e889853d7414484a74e;hpb=c4da06720df24e3136bb2cbab42505ac6469c4f5;p=osm%2Ftests.git diff --git a/devops-stages/stage-test.sh b/devops-stages/stage-test.sh index c5ca053..abc03e2 100755 --- a/devops-stages/stage-test.sh +++ b/devops-stages/stage-test.sh @@ -12,4 +12,13 @@ # 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 +