I wanted

make TESTFLAGS="-race" to work without the user having to worry about how it's actually passed to the docker cli via an environment. Hence the expansion earlier and setting -e.