X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=devops-stages%2Fstage-test.sh;h=31161ac22809973ac1cb432e5788071ebe585959;hb=HEAD;hp=0fcf210874a3138edb9e322fc5e840731444019c;hpb=61bbf92c1b2a4563f1636f053a4846b669161714;p=osm%2Ftests.git diff --git a/devops-stages/stage-test.sh b/devops-stages/stage-test.sh index 0fcf210..4be5aaa 100755 --- a/devops-stages/stage-test.sh +++ b/devops-stages/stage-test.sh @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -# python3 -m rflint testsuites - check_tabs () { folder="$1" tabs="y" @@ -68,6 +66,8 @@ check_spaces_eol () { exit 1 } +echo "Checking syntax of Robot tests" + echo "Checking tabs in robot files. No tabs should be present" check_tabs robot-systest/testsuite check_tabs robot-systest/lib @@ -93,6 +93,13 @@ check_spaces_eol robot-systest/testsuite check_spaces_eol robot-systest/lib echo "No presence of spaces at EOL in robot files. Correct!" -echo "SUCCESS" -exit 0 +# Other policies to be added here: +# - Blank lines used to separate main sections (Settings, Variables, Test Cases, Keywords) +# - Blank lines used to separate parts of eah section: +# - Variables: max 1 blank line to separate each one +# - Settings: 1 blank line to separate each kind of setting (all LIbrary together, all Resource together, etc.) +# - Test cases: 2 blank lines between test cases, max 1 blank line inside Test case, no blank line after Test Case Keyword + +echo "Launching tox" +TOX_PARALLEL_NO_SPINNER=1 tox --parallel=auto