Change some of the log file setup
Change-Id: I9d41354b96664c856c96e6d49c534c556f572dac
diff --git a/TestON/tests/dependencies/utils.py b/TestON/tests/dependencies/utils.py
index e1c2027..6155201 100644
--- a/TestON/tests/dependencies/utils.py
+++ b/TestON/tests/dependencies/utils.py
@@ -54,7 +54,7 @@
onfail="Failed to stopped mininet" )
return topoResult
- def copyKarafLog( self, copyFileName="" ):
+ def copyKarafLog( self, copyFileName="", before=False ):
"""
Description:
copy the karaf log and verify it.
@@ -78,7 +78,10 @@
"/tmp/karaf.log",
direction="from" )
copyResult = copyResult and main.ONOSbench.cpLogsToDir( "/tmp/karaf.log", main.logdir,
- copyFileName=( "karaf.log." + ctrl.name +
+ copyFileName= ( copyFileName + "_karaf.log." +
+ ctrl.name + "_" )
+ if before else
+ ( "karaf.log." + ctrl.name +
"." + copyFileName ) )
if scpResult and copyResult:
stepResult = main.TRUE and stepResult