From e2ce11c54f2f64df472c64bcf03c9f858e79b835 Mon Sep 17 00:00:00 2001 From: Luc Provoost Date: Mon, 16 Nov 2020 13:43:14 +0100 Subject: Support for xtesting Some files were added to for rapid testing in the xtesting framework Change-Id: Id912789c5007ca8390a67fb5b359296089aa9618 Signed-off-by: Luc Provoost --- VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py') diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py index 992d2d0a..29d87556 100644 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/rapid_parser.py @@ -24,6 +24,7 @@ except ImportError: # Python 2.x fallback import ConfigParser as configparser import ast +inf = float("inf") class RapidConfigParser(object): """ @@ -84,7 +85,7 @@ class RapidConfigParser(object): latency_thresholds = ['lat_avg_threshold','lat_perc_threshold','lat_max_threshold'] for threshold in latency_thresholds: if threshold not in test.keys(): - test[threshold] = 'inf' + test[threshold] = inf test_params['tests'] = tests if test_params['required_number_of_test_machines'] > test_params[ 'total_number_of_machines']: -- cgit 1.2.3-korg