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