From f341e857b521dc6987736eb4c58bfa728ca6135c Mon Sep 17 00:00:00 2001 From: Matt Clark Date: Mon, 28 Sep 2015 09:11:28 -0700 Subject: [PATCH] Fix bad testlist naming --- testcases/cloud_user/images/create_image.py | 4 ++-- testcases/cloud_user/images/import_instance_test.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/testcases/cloud_user/images/create_image.py b/testcases/cloud_user/images/create_image.py index b3069ee2..ff5e67dd 100644 --- a/testcases/cloud_user/images/create_image.py +++ b/testcases/cloud_user/images/create_image.py @@ -138,10 +138,10 @@ def find_filesystem(self, machine, block_device): if __name__ == "__main__": testcase = ImageCreator() ### Either use the list of tests passed from config/command line to determine what subset of tests to run - list = [ "CreateImage"] + testlist = [ "CreateImage"] ### Convert test suite methods to EutesterUnitTest objects unit_list = [ ] - for test in list: + for test in testlist: unit_list.append( testcase.create_testunit_by_name(test) ) ### Run the EutesterUnitTest objects diff --git a/testcases/cloud_user/images/import_instance_test.py b/testcases/cloud_user/images/import_instance_test.py index ba0487bb..82f07882 100755 --- a/testcases/cloud_user/images/import_instance_test.py +++ b/testcases/cloud_user/images/import_instance_test.py @@ -545,16 +545,16 @@ def clean_method(self): if __name__ == "__main__": testcase = ImportInstanceTests() if testcase.args.tests: - list = testcase.args.tests.splitlines(',') + testlist = testcase.args.tests.splitlines(',') else: - list = ['test1_basic_create_import_instance', + testlist = ['test1_basic_create_import_instance', 'test2_validate_params_against_task', 'test3_make_image_public', 'test4_tag_image'] ### Convert test suite methods to EutesterUnitTest objects unit_list = [ ] - for test in list: + for test in testlist: unit_list.append(testcase.create_testunit_by_name(test)) if testcase.args.no_clean_on_exit: clean_on_exit = False