From cc72b61456aeaa9752527d55541df3791ff1fbbf Mon Sep 17 00:00:00 2001 From: ashishk1994 Date: Tue, 21 Feb 2017 22:51:30 +0530 Subject: Added Unit Tests for ci/generate_report with argument refactoring for main and init functions in generate_reports Change-Id: I291d04a9c0ed381f4b92e989270c0b9a37c15264 Signed-off-by: ashishk1994 --- functest/ci/generate_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functest/ci') diff --git a/functest/ci/generate_report.py b/functest/ci/generate_report.py index 89d8fc62..3872a07e 100755 --- a/functest/ci/generate_report.py +++ b/functest/ci/generate_report.py @@ -26,7 +26,7 @@ COL_5_LEN = 75 logger = ft_logger.Logger("generate_report").getLogger() -def init(tiers_to_run): +def init(tiers_to_run=[]): test_cases_arr = [] for tier in tiers_to_run: for test in tier.get_tests(): @@ -91,7 +91,7 @@ def print_separator(char="=", delimiter="+"): return str -def main(args): +def main(args=[]): executed_test_cases = args if CONST.IS_CI_RUN: -- cgit 1.2.3-korg