summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-10-30 22:48:43 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-10-30 22:48:43 +0200
commit6bfe49e33c95c16c6fa7008aff58652a5864ca6e (patch)
tree65f0938a7feb717e24857b0cd68931042c1691d0
parent0d42a434e92f69ea8856998e3135e6b5e6adbd71 (diff)
syntax sugar on GA + fill ActionNumber with dummy value
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r--scripts/automation/regression/stateless_tests/stl_performance_test.py1
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py12
2 files changed, 7 insertions, 6 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_performance_test.py b/scripts/automation/regression/stateless_tests/stl_performance_test.py
index ef95c86b..62a1912f 100644
--- a/scripts/automation/regression/stateless_tests/stl_performance_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_performance_test.py
@@ -61,6 +61,7 @@ class PerformanceReport(object):
SetupName = self.machine_name,
TestType = 'performance',
Mppspc = self.avg_mpps_per_core,
+ ActionNumber = '<fill_me>',
GoldenMin = golden_mpps['min'],
GoldenMax = golden_mpps['max'])
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py
index 2c4e019b..fe4fc893 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/utils/GAObjClass.py
@@ -277,15 +277,15 @@ BlockingMode - boolean (1/0) - required when each tracked event is critical and
SetupName - text - will be presented on analysis. put here setup name as string.
"""
class GAmanager_Regression(GAmanager):
- def __init__(self,GoogleID,AnalyticsUserID,appName,appVer,
- QueueSize,Timeout,UserPermission,BlockingMode):
- GAmanager.__init__(self,GoogleID,AnalyticsUserID,appName,appVer,
- QueueSize,Timeout,UserPermission,BlockingMode)
+ def __init__(self, GoogleID, AnalyticsUserID, appName, appVer,
+ QueueSize, Timeout, UserPermission, BlockingMode):
+ GAmanager.__init__(self, GoogleID, AnalyticsUserID, appName, appVer,
+ QueueSize, Timeout, UserPermission, BlockingMode)
self.GoogleID = GoogleID
self.AnalyticsUserID = AnalyticsUserID
- def gaAddTestQuery(self,TestName,TRexMode,SetupName,ActionNumber,TestType,Mppspc,GoldenMin,GoldenMax):
- self.gaAddObject(GA_TESTING_ObjClass(self.AnalyticsUserID,self.GoogleID,TRexMode,TestName,SetupName,self.appName,ActionNumber,self.appVer,TestType,Mppspc,GoldenMin,GoldenMax))
+ def gaAddTestQuery(self, TestName, TRexMode, SetupName, ActionNumber, TestType, Mppspc, GoldenMin, GoldenMax):
+ self.gaAddObject(GA_TESTING_ObjClass(self.AnalyticsUserID, self.GoogleID, TRexMode, TestName, SetupName, self.appName, ActionNumber, self.appVer, TestType, Mppspc, GoldenMin, GoldenMax))