HDFS-12470. DiskBalancer: Some tests create plan files under system directory. Contributed by Hanisha Koneru.

This commit is contained in:
Arpit Agarwal 2017-09-18 09:53:24 -07:00
parent a4f9c7c924
commit a2dcba1853
1 changed files with 4 additions and 1 deletions

View File

@ -476,9 +476,12 @@ public void testPlanNode() throws Exception {
public void testPlanJsonNode() throws Exception {
final String planArg = String.format("-%s %s", PLAN,
"a87654a9-54c7-4693-8dd9-c9c7021dc340");
final Path testPath = new Path(
PathUtils.getTestPath(getClass()),
GenericTestUtils.getMethodName());
final String cmdLine = String
.format(
"hdfs diskbalancer %s", planArg);
"hdfs diskbalancer -out %s %s", testPath, planArg);
runCommand(cmdLine);
}