selftests/harness: Pass variant to teardown