Manual tests: Adapt to upstream changes

Change-Id: If7a3cfe94f96c64efbd43636ab0d054f9dbce32c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Christian Stenger
2022-02-01 12:13:56 +01:00
parent 435a4e9dd4
commit b864496238
2 changed files with 2 additions and 7 deletions

View File

@@ -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;

View File

@@ -42,7 +42,6 @@ Shell::Shell(const SshConnectionParameters &parameters, 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();