forked from qt-creator/qt-creator
Tests: Skip ssh related test conditionally
If there is no ssh tool present in PATH the test will fail, so do not expect all machines having ssh explicitly defined in PATH. Change-Id: Ic56898ac6a31e75cd2efae6f10464a9aab04b326 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -143,6 +143,9 @@ void tst_Ssh::errorHandling_data()
|
||||
|
||||
void tst_Ssh::errorHandling()
|
||||
{
|
||||
if (SshSettings::sshFilePath().isEmpty())
|
||||
QSKIP("No ssh found in PATH - skipping this test.");
|
||||
|
||||
QFETCH(QString, host);
|
||||
QFETCH(quint16, port);
|
||||
QFETCH(SshConnectionParameters::AuthenticationType, authType);
|
||||
|
Reference in New Issue
Block a user