mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
Fixed endless wait
This commit is contained in:
parent
8b2287126a
commit
8aea237ad7
1 changed files with 2 additions and 3 deletions
|
@ -118,7 +118,7 @@ void TestRunner::setWorkingFolder() {
|
|||
|
||||
script.write("#!/bin/sh\n\n");
|
||||
script.write("PROCESS=\"$1\"\n");
|
||||
script.write("until (pgrep $PROCESS >nul)\n");
|
||||
script.write("until (pgrep -x $PROCESS >nul)\n");
|
||||
script.write("do\n");
|
||||
script.write("\techo waiting for \"$1\" to start\n");
|
||||
script.write("\tsleep 2\n");
|
||||
|
@ -137,7 +137,7 @@ void TestRunner::setWorkingFolder() {
|
|||
|
||||
script.write("#!/bin/sh\n\n");
|
||||
script.write("PROCESS=\"$1\"\n");
|
||||
script.write("while (pgrep $PROCESS >nul)\n");
|
||||
script.write("while (pgrep -x $PROCESS >nul)\n");
|
||||
script.write("do\n");
|
||||
script.write("\techo waiting for \"$1\" to finish\n");
|
||||
script.write("\tsleep 2\n");
|
||||
|
@ -515,7 +515,6 @@ void TestRunner::runInterfaceWithTestScript() {
|
|||
" --no-login-suggestion"
|
||||
" --testScript " + testScript + " quitWhenFinished" +
|
||||
" --testResultsLocation " + _snapshotFolder +
|
||||
" && " + _workingFolder +"/waitForStart.sh interface" +
|
||||
" && " + _workingFolder +"/waitForFinish.sh interface";
|
||||
|
||||
script.write(commandLine.toStdString().c_str());
|
||||
|
|
Loading…
Reference in a new issue