Refactor test stages into functions. (#2164)
Refactor test stages into functions. (#2164)

* Refactor test stages into functions.

* Lint fixes.

* Replace logger.Fatalf with t.Fatalf.

* Remove hardcoded test name.

* Fix bad merge.

knative/serving,knative/serving