mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
avoid double newline in scenario stdout
This commit is contained in:
parent
2fc8106295
commit
08f6c48f6e
@ -96,7 +96,7 @@ public class ScriptEnvBuffer extends SimpleScriptContext {
|
||||
Optional.ofNullable(this.stdinBuffer).map(t->t.timedLog).ifPresent(log::addAll);
|
||||
Optional.ofNullable(this.stderrBuffer).map(t->t.timedLog).ifPresent(log::addAll);
|
||||
Optional.ofNullable(this.stdoutBuffer).map(t->t.timedLog).ifPresent(log::addAll);
|
||||
log = log.stream().map(l -> l+"\n").collect(Collectors.toList());
|
||||
log = log.stream().map(l -> l.endsWith("\n") ? l : l+"\n").collect(Collectors.toList());
|
||||
return log;
|
||||
}
|
||||
public String getTimedLog() {
|
||||
|
Loading…
Reference in New Issue
Block a user