blob: 279e858ff0630e044fb8b2c1737e5e86b9885726 [file] [log] [blame]
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -07001#!groovy
2// Copyright 2017 Open Networking Foundation (ONF)
3//
4// Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>,
5// the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>,
6// or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg>
7//
8// TestON is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation, either version 2 of the License, or
11// (at your option) any later version.
12//
13// TestON is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with TestON. If not, see <http://www.gnu.org/licenses/>.
20
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070021import groovy.time.TimeCategory
22import groovy.time.TimeDuration
23
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070024// read the dependency files
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070025graphs = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsGraphs.groovy' )
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070026test_list = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsTestONTests.groovy' )
27fileRelated = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/JenkinsPathAndFiles.groovy' )
28SCPFfuncs = evaluate readTrusted( 'TestON/JenkinsFile/dependencies/PerformanceFuncs.groovy' )
29
30category = null
31prop = null
32testsToRun = null
Jeremy Ronquilloa8490fb2019-06-26 11:59:50 -070033testsToRunStrList = null
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070034branch = null
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070035branchWithPrefix = null
Jeremy Ronquilloa8490fb2019-06-26 11:59:50 -070036start = null
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070037nodeLabel = null
Jeremy Ronquillo6fbfdd52019-07-09 13:49:34 -070038testStation = null
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070039testsOverride = null
40isGraphOnly = false
41isSCPF = false
Jeremy Ronquillo6da78cf2019-07-29 11:47:19 -070042pipelineTimeout = null
43
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070044testsFromList = [:]
45graphPaths = [:]
46pipeline = [:]
47
48main()
49
50def main(){
Jeremy Ronquillo892c1732019-07-29 15:22:57 -070051 pipelineTimeout = params.TimeOut.toInteger() // integer minutes until the entire pipeline times out. Usually passed from upstream master-trigger job.
Jeremy Ronquillo6da78cf2019-07-29 11:47:19 -070052 timeout( time: pipelineTimeout, unit: "MINUTES" ){
Jeremy Ronquillo892c1732019-07-29 15:22:57 -070053 init()
Jeremy Ronquillo6da78cf2019-07-29 11:47:19 -070054 runTests()
55 generateGraphs()
56 sendToSlack()
57 }
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070058}
59
60def init(){
61 fileRelated.init()
62 test_list.init()
63 readParams()
64
Jeremy Ronquillob8aac442019-07-31 13:28:01 -070065 if ( branch == "manually" ){
66 echo '''Warning: entered branch was: "manually". Defaulting to master branch.'''
67 branch = "master"
68 branchWithPrefix = test_list.addPrefixToBranch( branch )
69 }
70
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070071 if ( category == "SCPF" ){
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070072 isSCPF = true
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070073 SCPFfuncs.init()
Jeremy Ronquillo442ce4d2019-07-26 16:35:11 -070074 graphs.initialize( SCPFfuncs );
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070075 prop = getProperties()
76 isOldFlow = ( prop[ "isOldFlow" ] == "true" )
Jeremy Ronquilloa8490fb2019-06-26 11:59:50 -070077 SCPFfuncs.oldFlowRuleCheck( isOldFlow, prop[ "ONOSBranch" ] )
Jeremy Ronquilloa8490fb2019-06-26 11:59:50 -070078 } else {
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070079 isSCPF = false
80 graphs.initialize()
81 prop = getProperties()
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070082 }
83
Jeremy Ronquillob8aac442019-07-31 13:28:01 -070084 // get the list of the tests from category
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070085 testsFromList = test_list.getTestsFromCategory( category )
86
87 initGraphPaths()
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070088 tokenizeTokens = "\n;, "
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070089
Jeremy Ronquillo336110a2019-07-11 14:20:40 -070090 if ( testsOverride == "" || testsOverride == null ){
91 testsToRunStrList = prop[ "Tests" ].tokenize( tokenizeTokens )
92 } else {
93 testsToRunStrList = testsOverride.tokenize( tokenizeTokens )
94 }
Jeremy Ronquilloa8490fb2019-06-26 11:59:50 -070095 testsToRun = test_list.getTestsFromStringList( testsToRunStrList )
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -070096}
97
98def readParams(){
Jeremy Ronquillo6fbfdd52019-07-09 13:49:34 -070099 category = params.Category // "FUNC", "HA", "USECASE", etc.
100 branch = params.Branch // "1.15", "2.1", "master", etc.
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700101 branchWithPrefix = test_list.addPrefixToBranch( branch )
Jeremy Ronquillo6fbfdd52019-07-09 13:49:34 -0700102 testStation = params.TestStation // "TestStation-BMs", etc.
103 nodeLabel = params.NodeLabel // "BM", "VM", "Fabric-1.x", etc.
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700104 testsOverride = params.TestsOverride // "FUNCflow, FUNCintent, [...]", overrides property file
105 isGraphOnly = params.OnlyRefreshGraphs // true or false
106}
107
108def getProperties(){
109 // get the properties of the test by reading the TestONOS.property
110
111 filePath = '''/var/jenkins/TestONOS-''' + category + '''-''' + branchWithPrefix + '''.property'''
112
113 node( testStation ) {
114 return readProperties( file: filePath )
115 }
116}
117
118def getCurrentTime(){
119 // get time of the PST zone.
120
121 TimeZone.setDefault( TimeZone.getTimeZone( 'PST' ) )
122 return new Date()
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700123}
124
125def initGraphPaths(){
Jeremy Ronquillo1e5d7f22019-07-17 14:18:42 -0700126 graphPaths.put( "trendIndividual", fileRelated.rScriptPaths[ "scripts" ][ "trendIndividual" ] )
Jon Halla15854a2020-07-23 15:47:00 -0700127 if ( category == "SR" || category == "SR-StratumBMv2" ){
Jeremy Ronquillo1e5d7f22019-07-17 14:18:42 -0700128 graphPaths.put( "saveDirectory", fileRelated.workspaces[ "base" ] + "postjob-" + ( testStation - "TestStation-" - "s" ) + "/" )
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700129 } else if ( category == "SRHA" ) {
Jeremy Ronquillo1e5d7f22019-07-17 14:18:42 -0700130 graphPaths.put( "saveDirectory", fileRelated.workspaces[ "Fabric" ] )
Jeremy Ronquillobb3001f2019-07-01 12:57:07 -0700131 } else if ( category == "SCPF" || category == "USECASE" ){
Jeremy Ronquillo1e5d7f22019-07-17 14:18:42 -0700132 graphPaths.put( "saveDirectory", fileRelated.workspaces[ "BM" ] )
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700133 } else {
Jeremy Ronquillo1e5d7f22019-07-17 14:18:42 -0700134 graphPaths.put( "saveDirectory", fileRelated.workspaces[ "VM" ] )
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700135 }
136}
137
138def runTests(){
139 // run the test sequentially and save the function into the dictionary.
Jeremy Ronquillob8aac442019-07-31 13:28:01 -0700140 for ( String test : testsFromList.keySet() ){
141 toBeRun = testsToRun.keySet().contains( test )
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700142 stepName = ( toBeRun ? "" : "Not " ) + "Running $test"
Jeremy Ronquillo31a3eb32019-08-02 13:30:37 -0700143 pureTestName = test.contains( "WithFlowObj" ) ? test - "WithFlowObj" : test
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700144 pipeline[ stepName ] = runTest( test,
145 toBeRun,
146 prop,
147 pureTestName,
148 isGraphOnly,
149 testsToRun,
150 graphPaths[ "trendIndividual" ],
151 graphPaths[ "saveDirectory" ] )
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700152 }
153
154 // get the start time of the test.
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700155 start = getCurrentTime()
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700156
157 // run the tests sequentially.
158 for ( test in pipeline.keySet() ){
159 pipeline[ test ].call()
160 }
161}
162
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700163def initTest(){
164 return '''#!/bin/bash -l
165 set -i # interactive
166 set +e
167 shopt -s expand_aliases # expand alias in non-interactive mode
168 export PYTHONUNBUFFERED=1
169 ifconfig
170 echo "ONOS Branch is: $ONOSBranch"
171 echo "TestON Branch is: $TestONBranch"
172 echo "Test date: "
173 date
174 cd ~
175 export PATH=$PATH:onos/tools/test/bin
176 timeout 240 stc shutdown | head -100
177 timeout 240 stc teardown | head -100
178 timeout 240 stc shutdown | head -100
179 cd ~/OnosSystemTest/TestON/bin
180 git log | head
181 ./cleanup.sh -f || true
182 '''
183}
184
Jeremy Ronquillo5ceda072019-08-12 12:56:43 -0700185def configureJavaVersion(){
186 java_1_8_branches = [ "1.15" ]
187 return '''#!/bin/bash -l
188 ''' + ( java_1_8_branches.contains( branch ) ? '''SET_JAVA_VER=java-8-oracle''' : '''SET_JAVA_VER=java-1.11.0-openjdk-amd64''' ) +
189 '''
190 CELL_COUNT=$( env | egrep "OC[1-9]+" | wc -l )
191 for i in $(seq 1 $CELL_COUNT)
192 do
193 CELL_TO_SET=$( env | egrep "OC$i" | cut -c5- )
194 echo "Setting java to $SET_JAVA_VER on $CELL_TO_SET"
195 eval ssh $CELL_TO_SET 'sudo update-java-alternatives -s $SET_JAVA_VER'
196 done
197 '''
198}
199
Jeremy Ronquillo31a3eb32019-08-02 13:30:37 -0700200def runTestCli_py( testName, pureTestName, testCategory ){
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700201 // Bash script that will run the test.
202 // testName : name of the test
203 // testCategory : (SR,FUNC ... )
Jeremy Ronquillo31a3eb32019-08-02 13:30:37 -0700204 flowObjFlag = false
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700205
Jeremy Ronquillo31a3eb32019-08-02 13:30:37 -0700206 if ( isSCPF && testName.contains( "WithFlowObj" ) ){
207 flowObjFlag = true
208 }
209
210 command = '''cd ~/OnosSystemTest/TestON/bin
211 ./cli.py run ''' + pureTestName + ''' --params''' + ( flowObjFlag ? '''TEST/flowObj=True ''' : ''' ''' ) + '''GRAPH/nodeCluster=''' + graphs.getPostjobType( nodeLabel ) + ''' '''
212 echo command
213
214 return command
215
216
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700217}
218
219def concludeRunTest(){
220 return '''cd ~/OnosSystemTest/TestON/bin
221 ./cleanup.sh -f || true
222 # cleanup config changes
223 cd ~/onos/tools/package/config
224 git clean -df'''
225}
226
227def copyLogs(){
228 // bash script to copy the logs and other necessary element for SR tests.
229
230 result = ""
Jon Halla15854a2020-07-23 15:47:00 -0700231 if ( category == "SR" || category == "SR-StratumBMv2" ){
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700232 result = '''
233 sudo rm /var/jenkins/workspace/SR-log-${WikiPrefix}/*
234 sudo cp *karaf.log.* /var/jenkins/workspace/SR-log-${WikiPrefix}/
235 sudo cp *Flows* /var/jenkins/workspace/SR-log-${WikiPrefix}/
236 sudo cp *Groups* /var/jenkins/workspace/SR-log-${WikiPrefix}/
237 sudo cp *.tar.gz /var/jenkins/workspace/SR-log-${WikiPrefix}/
238 sudo cp t3-* /var/jenkins/workspace/SR-log-${WikiPrefix}/
239 '''
240 }
241 return result
242}
243
244def cleanAndCopyFiles( testName ){
245 // clean up some files that were in the folder and copy the new files from the log
246 // testName : name of the test
247
248 return '''#!/bin/bash -i
249 set +e
250 echo "ONOS Branch is: ${ONOSBranch}"
251 echo "TestON Branch is: ${TestONBranch}"
252 echo "Job name is: "''' + testName + '''
253 echo "Workspace is: ${WORKSPACE}/"
254 echo "Wiki page to post is: ${WikiPrefix}-"
255 # remove any leftover files from previous tests
256 sudo rm ${WORKSPACE}/*Wiki.txt
257 sudo rm ${WORKSPACE}/*Summary.txt
258 sudo rm ${WORKSPACE}/*Result.txt
259 sudo rm ${WORKSPACE}/*Alarm.txt || true
260 sudo rm ${WORKSPACE}/*.csv
261 #copy files to workspace
262 cd `ls -t ~/OnosSystemTest/TestON/logs/*/ | head -1 | sed 's/://'`
263 ''' + copyLogs() + '''
264 sudo cp *.txt ${WORKSPACE}/
265 sudo cp *.csv ${WORKSPACE}/
266 cd ${WORKSPACE}/
267 for i in *.csv
268 do mv "$i" "$WikiPrefix"-"$i"
269 done
270 ls -al
271 cd '''
272}
273
274def fetchLogs( testName ){
275 // fetch the logs of onos from onos nodes to onos System Test logs
276 // testName: name of the test
277
278 return '''#!/bin/bash
279 set +e
280 cd ~/OnosSystemTest/TestON/logs
281 echo "TestON test name is: "''' + testName + '''
282 TestONlogDir=$(ls -t | grep ${TEST_NAME}_ |head -1)
283 echo "########################################################################################"
284 echo "##### copying ONOS logs from all nodes to TestON/logs directory: ${TestONlogDir}"
285 echo "########################################################################################"
286 cd $TestONlogDir
287 if [ $? -eq 1 ]
288 then
289 echo "Job name does not match any test suite name to move log!"
290 else
291 pwd
292 for i in $OC{1..7}; do onos-fetch-logs $i || echo log does not exist for onos $i; done
293 for i in $OC{1..7}; do atomix-fetch-logs $i || echo log does not exist for atomix $i; done
294 fi
295 cd'''
296}
297
298def publishToConfluence( isManualRun, isPostResult, wikiLink, file ){
299 // publish HTML script to wiki confluence
300 // isManualRun : string "true" "false"
301 // isPostResult : string "true" "false"
302 // wikiLink : link of the wiki page to publish
303 // file : name of the file to be published
304
Jeremy Ronquillo31a3eb32019-08-02 13:30:37 -0700305 if ( graphs.isPostingResult( isManualRun, isPostResult ) ){
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700306 publishConfluence siteName: 'wiki.onosproject.org', pageName: wikiLink, spaceName: 'ONOS',
307 attachArchivedArtifacts: true, buildIfUnstable: true,
308 editorList: [ confluenceWritePage( confluenceFile( file ) ) ]
309 }
310}
311
312def postLogs( testName, prefix ){
313 // posting logs of the onos jobs specifically SR tests
314 // testName : name of the test
315 // prefix : branch prefix ( master, 2.1, 1.15 ... )
316
317 resultURL = ""
Jon Halla15854a2020-07-23 15:47:00 -0700318 if ( category == "SR" || category == "SR-StratumBMv2" ){
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700319 def post = build job: "SR-log-" + prefix, propagate: false
320 resultURL = post.getAbsoluteUrl()
321 }
322 return resultURL
323}
324
325def analyzeResult( prop, workSpace, pureTestName, testName, resultURL, wikiLink, isSCPF ){
326 // analyzing the result of the test and send to slack if any abnormal result is logged.
327 // prop : property dictionary
328 // workSpace : workSpace where the result file is saved
329 // pureTestName : TestON name of the test
330 // testName : Jenkins name of the test. Example: SCPFflowTPFobj
331 // resultURL : url for the logs for SR tests. Will not be posted if it is empty
332 // wikiLink : link of the wiki page where the result was posted
333 // isSCPF : Check if it is SCPF. If so, it won't post the wiki link.
334
335 node( testStation ) {
336 def alarmFile = workSpace + "/" + pureTestName + "Alarm.txt"
337 if ( fileExists( alarmFile ) ) {
338 def alarmContents = readFile( alarmFile )
339 slackSend( channel: "#jenkins-related",
340 color: "FF0000",
341 message: "[" + prop[ "ONOSBranch" ] + "]" + testName + " : triggered alarms:\n" +
342 alarmContents + "\n" +
343 "[TestON log] : \n" +
344 "https://jenkins.onosproject.org/blue/organizations/jenkins/${ env.JOB_NAME }/detail/${ env.JOB_NAME }/${ env.BUILD_NUMBER }/pipeline" +
345 ( isSCPF ? "" : ( "\n[Result on Wiki] : \n" +
346 "https://wiki.onosproject.org/display/ONOS/" +
347 wikiLink.replaceAll( "\\s", "+" ) ) ) +
348 ( resultURL != "" ? ( "\n[Karaf log] : \n" +
349 resultURL + "artifact/" ) : "" ),
350 teamDomain: 'onosproject' )
Jeremy Ronquilloe4e83912019-07-29 12:58:48 -0700351 print "Abnormal test result."
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700352 throw new Exception( "Abnormal test result." )
353 }
354 else {
355 print "Test results are OK."
356 }
357 }
358}
359
360def runTest( testName, toBeRun, prop, pureTestName, graphOnly, testCategory, graph_generator_file,
361 graph_saved_directory ){
362 // run the test on the machine that contains all the steps : init and run test, copy files, publish result ...
363 // testName : name of the test in Jenkins
364 // toBeRun : boolean value whether the test will be run or not. If not, it won't be run but shows up with empty
365 // result on pipeline view
366 // prop : dictionary property on the machine
367 // pureTestName : Pure name of the test. ( ex. pureTestName of SCPFflowTpFobj will be SCPFflowTp )
368 // graphOnly : check if it is generating graph job. If so, it will only generate the generating graph part
369 // testCategory : Map for the test suit ( SCPF, SR, FUNC, ... ) which contains information about the tests
370 // graph_generator_file : Rscript file with the full path.
371 // graph_saved_directory : where the generated graph will be saved to.
372
373 return {
374 catchError {
375 stage( testName ) {
376 if ( toBeRun ){
377 def workSpace = "/var/jenkins/workspace/" + testName
378 def fileContents = ""
379 node( testStation ) {
380 withEnv( [ 'ONOSBranch=' + prop[ "ONOSBranch" ],
381 'ONOSJAVAOPTS=' + prop[ "ONOSJAVAOPTS" ],
382 'TestONBranch=' + prop[ "TestONBranch" ],
383 'ONOSTag=' + prop[ "ONOSTag" ],
384 'WikiPrefix=' + prop[ "WikiPrefix" ],
385 'WORKSPACE=' + workSpace ] ) {
386 if ( !graphOnly ){
387 if ( isSCPF ){
388 // Remove the old database file
389 sh SCPFfuncs.cleanupDatabaseFile( testName )
390 }
Jeremy Ronquillo5ceda072019-08-12 12:56:43 -0700391 sh script: configureJavaVersion(), label: "Configure Java Version"
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700392 sh script: initTest(), label: "Test Initialization: stc shutdown; stc teardown; ./cleanup.sh"
393 catchError{
Jeremy Ronquillo31a3eb32019-08-02 13:30:37 -0700394 sh script: runTestCli_py( testName, pureTestName, testCategory ), label: ( "Run Test: ./cli.py run " + testName )
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700395 }
396 catchError{
397 sh script: concludeRunTest(), label: "Conclude Running Test: ./cleanup.sh; git clean -df"
398 }
399 catchError{
400 // For the Wiki page
401 sh script: cleanAndCopyFiles( pureTestName ), label: "Clean and Copy Files"
402 }
403 }
404 graphs.databaseAndGraph( prop, testName, pureTestName, graphOnly,
405 graph_generator_file, graph_saved_directory )
406 if ( !graphOnly ){
407 sh script: fetchLogs( pureTestName ), label: "Fetch Logs"
408 if ( !isSCPF ){
409 publishToConfluence( prop[ "manualRun" ], prop[ "postResult" ],
410 prop[ "WikiPrefix" ] + "-" + testCategory[ testName ][ 'wikiName' ],
411 workSpace + "/" + testCategory[ testName ][ 'wikiFile' ] )
412 }
413 }
414 }
415 }
416 graphs.postResult( prop, graphOnly, nodeLabel )
417 if ( !graphOnly ){
418 def resultURL = postLogs( testName, prop[ "WikiPrefix" ] )
419 analyzeResult( prop, workSpace, pureTestName, testName, resultURL,
420 isSCPF ? "" : testCategory[ testName ][ 'wikiName' ],
421 isSCPF )
422 }
Jeremy Ronquillob8aac442019-07-31 13:28:01 -0700423 } else {
424 echo testName + " is not being run today. Leaving the rest of stage contents blank."
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700425 }
426 }
427 }
428 }
429}
430
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700431def generateGraphs(){
Jeremy Ronquillo06950992019-07-09 11:16:49 -0700432 if ( category != "SCPF" ){
433 // generate the overall graph of the non SCPF tests.
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700434 graphs.generateOverallGraph( prop, testsToRun, graphPaths[ "saveDirectory" ], nodeLabel, category )
Jeremy Ronquillobb3001f2019-07-01 12:57:07 -0700435 }
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700436}
437
438def sendToSlack(){
Jeremy Ronquillo336110a2019-07-11 14:20:40 -0700439 // send the result of the test to the slack when it is not manually running.
440 // start : start time of the test
441 // isManualRun : string that is whether "false" or "true"
442 // branch : branch of the onos.
443
444 try {
445 if ( prop[ "manualRun" ] == "false" ){
446 end = getCurrentTime()
447 TimeDuration duration = TimeCategory.minus( end, start )
448 // FIXME: for now we disable notifications of normal test results
449 /*
450 slackSend( color: "#5816EE",
451 message: category + "-" + prop[ "WikiPrefix" ] + " tests ended at: " + end.toString() +
452 "\nTime took : " + duration )
453 */
454 }
455 }
456 catch ( all ){
457 }
Jeremy Ronquillo21c29fc2019-06-05 11:15:24 -0700458}