diff options
author | 2016-01-28 18:28:45 +0200 | |
---|---|---|
committer | 2016-01-28 18:28:45 +0200 | |
commit | d4b2ae7ddbaae8660ddaff710bf4a5459ff0657f (patch) | |
tree | c807e85de28319d6a850a41d3fa63c35ac3a2407 /scripts/automation/trex_control_plane/client_utils | |
parent | 4715b86a6e165373e8b8b6d52095637a3882a942 (diff) |
HLTAPI updates, aggregated results tests count print
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils')
-rwxr-xr-x | scripts/automation/trex_control_plane/client_utils/general_utils.py | 7 |
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 |