Run-test build: Split the main method into two. am: 271d57234e

Original change: https://android-review.googlesource.com/c/platform/art/+/1846383

Change-Id: Ic32a32e7a69357aa509c40ad5cac9eeea7b3b869