Runs Interface with Sandbox

This commit is contained in:
NissimHadar 2018-10-30 18:41:10 -07:00
parent 41b70ffab5
commit 263a831fc4

View file

@ -345,16 +345,21 @@ void TestRunner::killProcesses() {
} }
void TestRunner::startLocalServerProcesses() { void TestRunner::startLocalServerProcesses() {
#ifdef Q_OS_WIN
QString commandLine; QString commandLine;
#ifdef Q_OS_WIN
commandLine = "start \"domain-server.exe\" \"" + QDir::toNativeSeparators(_installationFolder) + "\\domain-server.exe\""; commandLine = "start \"domain-server.exe\" \"" + QDir::toNativeSeparators(_installationFolder) + "\\domain-server.exe\"";
system(commandLine.toStdString().c_str()); system(commandLine.toStdString().c_str());
commandLine = commandLine =
"start \"assignment-client.exe\" \"" + QDir::toNativeSeparators(_installationFolder) + "\\assignment-client.exe\" -n 6"; "start \"assignment-client.exe\" \"" + QDir::toNativeSeparators(_installationFolder) + "\\assignment-client.exe\" -n 6";
system(commandLine.toStdString().c_str()); system(commandLine.toStdString().c_str());
#elif defined Q_OS_MAC
commandLine = "open -a \"" +_installationFolder + "/Sandbox.app\"";
system(commandLine.toStdString().c_str());
#endif #endif
// Give server processes time to stabilize // Give server processes time to stabilize
QThread::sleep(20); QThread::sleep(20);
} }