]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Print newline after --exiton triggered exit
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 4 Nov 2014 14:35:20 +0000 (15:35 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 4 Nov 2014 14:35:20 +0000 (15:35 +0100)
Otherwise, cursor might end up in the middle of a line and text printed
after novaboot exits starts there. As this might break various things such
as test protocol parses, we always end with a new line.

novaboot

index 5f4cfe3fdc299e911bcc49363702107f9821a6df..0c2faf157d9ea78df2ddde74d874da234da7b0a8 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -1095,6 +1095,7 @@ if (defined $exp) {
     $exp->log_stdout(1);
     if (@exiton) {
        $exp->expect($exiton_timeout, @expect_raw, @exiton) || die("exiton timeout");
+       print "\n";
     } else {
        my @inputs = ($exp);
        if (-t STDIN) { # Set up bi-directional communication if we run on terminal