From d4b2ae7ddbaae8660ddaff710bf4a5459ff0657f Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 28 Jan 2016 18:28:45 +0200 Subject: HLTAPI updates, aggregated results tests count print --- .../automation/trex_control_plane/client_utils/general_utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/client_utils') 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 -- cgit 1.2.3-korg