public void teardownAgentHome() {
        if (testRootDir != null) {
            try {
                FileUtils.deleteDirectory(testRootDir.toFile());
            } catch (Exception ignored) {
                LOGGER.warn("deleteDirectory error ", ignored);
            }
        }
    }
common environment setting up for test cases.
inlong-agent/agent-common/src/test/java/org/apache/inlong/agent/AgentBaseTestsHelper.java