Merge pull request #2312 from tclinken/fix-waiting-for-dd-output

Only print 'waiting for DD to end...' if test actually waits
This commit is contained in:
Meng Xu 2019-11-04 14:57:40 -08:00 committed by GitHub
commit 927a9c02fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1093,11 +1093,12 @@ ACTOR Future<Void> runTests( Reference<AsyncVar<Optional<struct ClusterControlle
// do we handle a failure here?
}
printf("\n%d tests passed; %d tests failed, waiting for DD to end...\n\n", passCount, failCount);
printf("\n%d tests passed; %d tests failed.\n", passCount, failCount);
//If the database was deleted during the workload we need to recreate the database
if(tests.empty() || useDB) {
if(waitForQuiescenceEnd) {
printf("Waiting for DD to end...\n");
try {
wait(quietDatabase(cx, dbInfo, "End", 0, 2e6, 2e6) ||
(databasePingDelay == 0.0 ? Never()
@ -1108,6 +1109,7 @@ ACTOR Future<Void> runTests( Reference<AsyncVar<Optional<struct ClusterControlle
}
}
}
printf("\n");
return Void();
}