fixing DSML issue tracking and tomcat logs backup
| | |
| | | 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'service' : 'FS', |
| | | 'request' : 'COPY ', |
| | | 'arguments' : 'DIRECTORY %s/%s-%s/logs TODIRECTORY %s/tomcatLogBackup TOMACHINE %s RECURSE' % (WC_DIRECTORY, WC_TYPE, WC_VERSION, STAXServiceMachine, local.temp) |
| | | 'arguments' : 'DIRECTORY %s/%s-%s/logs TODIRECTORY %s/tomcatLogBackup TOMACHINE %s RECURSE' % (WC_DIRECTORY, WC_TYPE, WC_VERSION, local.temp, STAXServiceMachine) |
| | | } |
| | | </call> |
| | | |
| | |
| | | } |
| | | </call> |
| | | <if expr="RC != 0"> |
| | | <!-- list the known issue for the TC --> |
| | | <sequence> |
| | | |
| | | |
| | | <script> |
| | | foundKnownIssue = False |
| | | </script> |
| | | <message>"check against test's known issues"</message> |
| | | |
| | | <call function="'runSTAFCommand'"> |
| | |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | <script> |
| | | foundKnownIssue = True |
| | | </script> |
| | | <break/> |
| | | </sequence> |
| | | </if> |
| | | </sequence> |
| | | </iterate> |
| | | </if> |
| | | <if expr="len(genericIssues) > 0"> |
| | | <if expr="not foundKnownIssue and len(genericIssues) > 0"> |
| | | <iterate var="issueFile" in="genericIssues"> |
| | | <sequence> |
| | | <script> |
| | |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | <script> |
| | | foundKnownIssue = True |
| | | </script> |
| | | <break/> |
| | | </sequence> |
| | | </if> |
| | | </sequence> |
| | | </iterate> |
| | | </if> |
| | | <if expr="not foundKnownIssue"> |
| | | <sequence> |
| | | <message>'checking string marker issues in result'</message> |
| | | <call function="'runSTAFCommand'"> |
| | | { 'name' : 'check if known issue %s' % issue, |
| | |
| | | <call function="'setKnownIssue'"> |
| | | { 'issueId' : issue } |
| | | </call> |
| | | <script> |
| | | foundKnownIssue=True |
| | | </script> |
| | | <break/> |
| | | </sequence> |
| | | </if> |
| | | </sequence> |
| | | </if> |
| | | |
| | | </sequence> |
| | | <catch exception="'...'" typevar="eType" var="eInfo"> |
| | |
| | | } |
| | | |
| | | private STAFResult handleCheckErrorStrings(STAFServiceInterfaceLevel30.RequestInfo info) { |
| | | STAFResult sr = new STAFResult(0); |
| | | // default return will be kDSMLInvalidSomething + 14 marking that |
| | | // no known error string match the erroneous expected file content. |
| | | STAFResult sr = new STAFResult(kDSMLInvalidSomething + 14); |
| | | STAFCommandParseResult parsedRequest = fParser.parse(info.request); |
| | | if (parsedRequest.rc != STAFResult.Ok) { |
| | | return new STAFResult(STAFResult.InvalidRequestString, |