test_flavors list comprehension

* Replaced for loop in test_list_flavors with list comprehension

Change-Id: Ia454753407752b53db5ea4dd49c8ce3fe9d994ab
Merge "test_flavors list comprehension"