[PATCH v4 09/14] selftests: harness: Move teardown conditional into test metadata