Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Fix bad testlist naming #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions testcases/cloud_user/images/create_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions testcases/cloud_user/images/import_instance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down