mirror of
https://github.com/apache/sqoop.git
synced 2025-05-11 22:41:50 +08:00
SQOOP-2077: Sqoop2: Enclose missing/extra lines in output of HdfsAsserts.assertMapreduceOutput
(Jarek Jarcec Cecho via Abraham Elmahrek)
This commit is contained in:
parent
7fff9ae909
commit
d43dc1b0b5
@ -67,10 +67,11 @@ public static void assertMapreduceOutput(FileSystem fs, String directory, String
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!setLines.isEmpty() || !notFound.isEmpty()) {
|
if(!setLines.isEmpty() || !notFound.isEmpty()) {
|
||||||
|
LOG.error("Output do not match expectations.");
|
||||||
LOG.error("Expected lines that weren't present in the files:");
|
LOG.error("Expected lines that weren't present in the files:");
|
||||||
LOG.error("\t" + StringUtils.join(setLines, "\n\t"));
|
LOG.error("\t'" + StringUtils.join(setLines, "'\n\t'") + "'");
|
||||||
LOG.error("Extra lines in files that weren't expected:");
|
LOG.error("Extra lines in files that weren't expected:");
|
||||||
LOG.error("\t" + StringUtils.join(notFound, "\n\t"));
|
LOG.error("\t'" + StringUtils.join(notFound, "'\n\t'") + "'");
|
||||||
fail("Output do not match expectations.");
|
fail("Output do not match expectations.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user