Detect and work around broken test environment

Bug: 26928703
Change-Id: I837a0f6970b68c2cafdea2d763227e7c3260a9be
1 file changed