Generalize ART APEX flavor handling in `art_apex_test.py`. am: d7ea0437a8
am: 677f8b886a

Change-Id: Idf7d854cd4631e1ab0726fe50d142dfd2b6a6c51