<table><tr><td style="">sirgienko added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11791">View Revision</a></tr></table><br /><div><div><p>Well, maybe I found the problem of unstable tests result: repeating lua input in output and not numbered line produce situation, that sometimes we end output parsing, because aviable lua output ends, but lua VM doesn't end work. For example, if we run</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">print(3)
print(4)</pre></div>
<p>We could end parsing after getting result of first command (if we read lua prompt before lua repeats the command to output, for this example, read <tt style="background: #ebebeb; font-size: 13px;">> </tt> before <tt style="background: #ebebeb; font-size: 13px;">print(4)</tt> will be writed in output chanell (there is delay between this moments)) and set status <tt style="background: #ebebeb; font-size: 13px;">Done</tt>, but output don't end and we have result of second command in output.<br />
I think, It's not a problem for Cantor GUI, because I haven't notice this problem, while I have worked with the worksheet, but it affects to test results.<br />
I think, there are few ways to work with it:</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Change expresssion end condition: we know, that lua repeat all input to output, so we could wait, until read all input commands in output</li>
<li class="remarkup-list-item">Just ignore this problem and run tests few times and take maximum of passed tests</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R55 Cantor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11791">https://phabricator.kde.org/D11791</a></div></div><br /><div><strong>To: </strong>sirgienko, Cantor<br /><strong>Cc: </strong>asemke, filipesaraiva, Cantor, KDE Edu, narvaez, apol<br /></div>