aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-07-15 14:18:56 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-07-16 04:54:16 +0000
commit1c438aadde0ee73fe2fedb41116b38cd18ac21fb (patch)
tree2fc5a42489b84666685b492156f5c552ca2662a2 /tests
parent9c39956eab2439d32f3991e1bee5d762e1333cfb (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/ssh/tst_ssh.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/ssh/tst_ssh.cpp b/tests/auto/ssh/tst_ssh.cpp
index 72260c2c9a..dfc60952ae 100644
--- a/tests/auto/ssh/tst_ssh.cpp
+++ b/tests/auto/ssh/tst_ssh.cpp
@@ -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);