From 3397d75db8ebf3d43740c6e6e1d308ee8917bcf5 Mon Sep 17 00:00:00 2001 From: Erik Krogen Date: Mon, 23 Apr 2018 12:24:18 -0700 Subject: [PATCH] Closes #28. Remove the check for truncate in the integration test. --- .../com/linkedin/dynamometer/TestDynamometerInfra.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dynamometer-infra/src/test/java/com/linkedin/dynamometer/TestDynamometerInfra.java b/dynamometer-infra/src/test/java/com/linkedin/dynamometer/TestDynamometerInfra.java index 22da18dedc..cfec9165bb 100644 --- a/dynamometer-infra/src/test/java/com/linkedin/dynamometer/TestDynamometerInfra.java +++ b/dynamometer-infra/src/test/java/com/linkedin/dynamometer/TestDynamometerInfra.java @@ -60,9 +60,7 @@ * the workload job is launched and it is verified that it completes successfully * and is able to replay commands as expected. * - * To run this test JAVA_HOME must be set correctly. - * This also relies on the {@code tar} and {@code truncate} utilities - * being available ({@code truncate} is generally required to run Dynamometer). + * To run this test JAVA_HOME must be set correctly, and the {@code tar} utility must be available. * * You can optionally specify which version of HDFS should be started within * the Dynamometer cluster; the default is {@value HADOOP_BIN_VERSION_DEFAULT}. This can be adjusted @@ -118,12 +116,6 @@ public static void setupClass() throws Exception { if (tarCheck.getExitCode() != 0) { fail("tar command is not available"); } - Shell.ShellCommandExecutor truncateCheck = - new Shell.ShellCommandExecutor(new String[] {"bash", "-c", "command -v truncate"}); - truncateCheck.execute(); - if (truncateCheck.getExitCode() != 0) { - fail("truncate command is not available"); - } conf = new Configuration(); // Follow the conventions of MiniDFSCluster