summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/client_utils
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-01-28 18:28:45 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-01-28 18:28:45 +0200
commitd4b2ae7ddbaae8660ddaff710bf4a5459ff0657f (patch)
treec807e85de28319d6a850a41d3fa63c35ac3a2407 /scripts/automation/trex_control_plane/client_utils
parent4715b86a6e165373e8b8b6d52095637a3882a942 (diff)
HLTAPI updates, aggregated results tests count print
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils')
-rwxr-xr-xscripts/automation/trex_control_plane/client_utils/general_utils.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client_utils/general_utils.py b/scripts/automation/trex_control_plane/client_utils/general_utils.py
index 69ad14b2..3d55bc3e 100755
--- a/scripts/automation/trex_control_plane/client_utils/general_utils.py
+++ b/scripts/automation/trex_control_plane/client_utils/general_utils.py
@@ -90,7 +90,12 @@ def id_count_gen():
yield return_id
return_id += 1
-
+# try to get integer from input, return None in case of fail
+def get_integer(input):
+ try:
+ return int(input)
+ except:
+ return None
if __name__ == "__main__":
pass