AbstractIndexTests: Add --wide option to show-queue command invocation

By default the output of the command gets truncated to console width,
meaning the full project name is not included, and the check for the
output including the full name will always return false.

Add the --wide option to make sure the full name is always included.

Change-Id: I3bf8b68211acd3d9bba49864d2efeb4b53ae0fa7
This commit is contained in:
David Pursehouse 2018-06-20 08:37:59 +09:00
parent ba6125a747
commit ccaf58b6a9

View File

@ -108,7 +108,7 @@ public abstract class AbstractIndexTests extends AbstractDaemonTest {
boolean indexing = true;
while (indexing) {
String out = adminSshSession.exec("gerrit show-queue");
String out = adminSshSession.exec("gerrit show-queue --wide");
adminSshSession.assertSuccess();
indexing = out.contains("Index all changes of project " + project.get());
}