X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=devops-stages%2Fstage-test.sh;h=abc03e25ac928820093aa698cd250c0dcff2e910;hb=refs%2Fchanges%2F07%2F12107%2F5;hp=337cf5958d1922c8c2e5314a40fdafc511c64610;hpb=83721f3f6fba26d9137d0271af9ed700bb615caa;p=osm%2Ftests.git diff --git a/devops-stages/stage-test.sh b/devops-stages/stage-test.sh old mode 100644 new mode 100755 index 337cf59..abc03e2 --- a/devops-stages/stage-test.sh +++ b/devops-stages/stage-test.sh @@ -11,4 +11,14 @@ # implied. # See the License for the specific language governing permissions and # limitations under the License. -echo "TEST" +# python3 -m rflint testsuites +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 +