Factor out duplicate code in executor repo tests

This simplifies some repeated code.

Change-Id: Ic733f54e6d9de13cfb02f1c48d6847adc0ae384c
1 file changed