[PATCH v2 10/32] selftests: harness: Move teardown conditional into test metadata