forked from qt-creator/qt-creator
Manual tests: Adapt to upstream changes
Change-Id: If7a3cfe94f96c64efbd43636ab0d054f9dbce32c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -58,7 +58,8 @@ SshConnectionParameters ArgumentsCollector::collect(bool &success) const
|
||||
} else if (checkAndSetIntArg(pos, port, portGiven, "-p")
|
||||
|| checkAndSetIntArg(pos, parameters.timeout, timeoutGiven, "-t")) {
|
||||
continue;
|
||||
} else if (checkAndSetStringArg(pos, parameters.privateKeyFile, "-k")) {
|
||||
} else if (checkAndSetStringArg(pos, str, "-k")) {
|
||||
parameters.privateKeyFile = Utils::FilePath::fromString(str);
|
||||
parameters.authenticationType
|
||||
= SshConnectionParameters::AuthenticationTypeSpecificKey;
|
||||
authTypeGiven = true;
|
||||
|
@@ -42,7 +42,6 @@ Shell::Shell(const SshConnectionParameters ¶meters, QObject *parent)
|
||||
m_stdin(new QFile(this))
|
||||
{
|
||||
connect(m_connection, &SshConnection::connected, this, &Shell::handleConnected);
|
||||
connect(m_connection, &SshConnection::dataAvailable, this, &Shell::handleShellMessage);
|
||||
connect(m_connection, &SshConnection::errorOccurred, this, &Shell::handleConnectionError);
|
||||
}
|
||||
|
||||
@@ -68,11 +67,6 @@ void Shell::handleConnectionError()
|
||||
QCoreApplication::exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
void Shell::handleShellMessage(const QString &message)
|
||||
{
|
||||
std::cout << qPrintable(message);
|
||||
}
|
||||
|
||||
void Shell::handleConnected()
|
||||
{
|
||||
m_shell = m_connection->createRemoteShell();
|
||||
|
Reference in New Issue
Block a user