From: j-h.choi Date: Thu, 24 Dec 2020 04:22:42 +0000 (+0900) Subject: [TC Fixed] Index out of range X-Git-Tag: accepted/tizen/unified/20210125.073655~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19b20fe986c56b9866c845867e6a784411681875;p=platform%2Fcore%2Fdotnet%2Flauncher.git [TC Fixed] Index out of range Change-Id: I8737f068f8bb59f00278f13be2dd31cd783cd2f9 --- diff --git a/tests/TCs/1_AOT/AOT.py b/tests/TCs/1_AOT/AOT.py index f44efd5..409c342 100755 --- a/tests/TCs/1_AOT/AOT.py +++ b/tests/TCs/1_AOT/AOT.py @@ -141,7 +141,7 @@ def main(): args = parser.parse_args() global tc_array - if "TC_" in args.TC_NUMBER[0]: + if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]: tc_array = [] for tc_num in args.TC_NUMBER: if tc_num not in funcMap: diff --git a/tests/TCs/2_PLUGIN/PLUGIN.py b/tests/TCs/2_PLUGIN/PLUGIN.py index f48e37b..af6f067 100755 --- a/tests/TCs/2_PLUGIN/PLUGIN.py +++ b/tests/TCs/2_PLUGIN/PLUGIN.py @@ -283,7 +283,7 @@ def main(): args = parser.parse_args() global tc_array - if "TC_" in args.TC_NUMBER[0]: + if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]: tc_array = [] for tc_num in args.TC_NUMBER: if tc_num not in funcMap: diff --git a/tests/TCs/3_PRELOAD/PRELOAD.py b/tests/TCs/3_PRELOAD/PRELOAD.py index 0b5c781..c7c5508 100755 --- a/tests/TCs/3_PRELOAD/PRELOAD.py +++ b/tests/TCs/3_PRELOAD/PRELOAD.py @@ -112,7 +112,7 @@ def main(): args = parser.parse_args() global tc_array - if "TC_" in args.TC_NUMBER[0]: + if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]: tc_array = [] for tc_num in args.TC_NUMBER: if tc_num not in funcMap: diff --git a/tests/TCs/4_TAC/TAC.py b/tests/TCs/4_TAC/TAC.py index 7b60030..781776f 100755 --- a/tests/TCs/4_TAC/TAC.py +++ b/tests/TCs/4_TAC/TAC.py @@ -552,7 +552,7 @@ def main(): args = parser.parse_args() global tc_array - if "TC_" in args.TC_NUMBER[0]: + if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]: tc_array = [] for tc_num in args.TC_NUMBER: if tc_num not in funcMap: diff --git a/tests/TCs/5_TLC/TLC.py b/tests/TCs/5_TLC/TLC.py index 66cb913..5736742 100755 --- a/tests/TCs/5_TLC/TLC.py +++ b/tests/TCs/5_TLC/TLC.py @@ -536,7 +536,7 @@ def main(): args = parser.parse_args() global tc_array - if "TC_" in args.TC_NUMBER[0]: + if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]: tc_array = [] for tc_num in args.TC_NUMBER: if tc_num not in funcMap: diff --git a/tests/TCs/6_TOOL/TOOL.py b/tests/TCs/6_TOOL/TOOL.py index 82ecb58..9b3a232 100755 --- a/tests/TCs/6_TOOL/TOOL.py +++ b/tests/TCs/6_TOOL/TOOL.py @@ -440,7 +440,7 @@ def main(): args = parser.parse_args() global tc_array - if "TC_" in args.TC_NUMBER[0]: + if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]: tc_array = [] for tc_num in args.TC_NUMBER: if tc_num not in funcMap: diff --git a/tests/TCs/7_LAUNCH/LAUNCH.py b/tests/TCs/7_LAUNCH/LAUNCH.py index 8537283..5f9d631 100755 --- a/tests/TCs/7_LAUNCH/LAUNCH.py +++ b/tests/TCs/7_LAUNCH/LAUNCH.py @@ -207,7 +207,7 @@ def main(): args = parser.parse_args() global tc_array - if "TC_" in args.TC_NUMBER[0]: + if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]: tc_array = [] for tc_num in args.TC_NUMBER: if tc_num not in funcMap: