X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FUtils.robot;h=aed9a3e895013a554722f818dc31b9455e703817;hb=d6ca41682350770e0abae46b16c49d15ea527f8a;hp=038989d4454a17ae8152bd6837c6c804ba56e542;hpb=18dca374846b169c4852f0a7ea33046487a2207f;p=integration%2Ftest.git diff --git a/csit/libraries/Utils.robot b/csit/libraries/Utils.robot index 038989d445..aed9a3e895 100644 --- a/csit/libraries/Utils.robot +++ b/csit/libraries/Utils.robot @@ -70,7 +70,7 @@ Report_Failure_Due_To_Bug ... or as the first line of the test if FastFail module is not being ... used. It reports the URL of the bug on console and also puts it ... into the Robot log file. - ${test_skipped}= BuiltIn.Evaluate len(re.findall('SKIPPED', '''${TEST_MESSAGE}''')) > 0 modules=re + ${test_skipped}= BuiltIn.Evaluate len(re.findall('SKIPPED', """${TEST_MESSAGE}""")) > 0 modules=re BuiltIn.Return From Keyword If ('${TEST_STATUS}' != 'FAIL') or ${test_skipped} ${newline}= BuiltIn.Evaluate chr(10) ${msg}= BuiltIn.Set_Variable This test fails due to https://bugs.opendaylight.org/show_bug.cgi?id=${number} @@ -87,7 +87,7 @@ Report_Failure_And_Point_To_Linked_Bugs ... or as the first line of the test if FastFail module is not being ... used. It reports the URL of the bug on console and also puts it ... into the Robot log file. - ${test_skipped}= BuiltIn.Evaluate len(re.findall('SKIPPED', '''${TEST_MESSAGE}''')) > 0 modules=re + ${test_skipped}= BuiltIn.Evaluate len(re.findall('SKIPPED', """${TEST_MESSAGE}""")) > 0 modules=re BuiltIn.Return From Keyword If ('${TEST_STATUS}' != 'FAIL') or ${test_skipped} ${newline}= BuiltIn.Evaluate chr(10) ${reference}= String.Replace_String_Using_Regexp ${SUITE_NAME}_${TEST_NAME} [ /\.-] _ @@ -411,3 +411,12 @@ Post Log Check Log ${resp.content} Should Be Equal As Strings ${resp.status_code} ${status_code} [Return] ${resp} + +Get Log File Name + [Arguments] ${testtool} + [Documentation] Get the name of the suite sanitized to be usable as a part of filename. + ... These names are used to constructs names of the log files produced + ... by the testing tools so two suites using a tool wont overwrite the + ... log files if they happen to run in one job. + ${name}= BuiltIn.Evaluate """${SUITE_NAME}""".replace(" ","-").replace("/","-").replace(".","-") + [Return] ${testtool}--${name}.log