From 1c438aadde0ee73fe2fedb41116b38cd18ac21fb Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 15 Jul 2019 14:18:56 +0200 Subject: 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 --- tests/auto/ssh/tst_ssh.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/auto') diff --git a/tests/auto/ssh/tst_ssh.cpp b/tests/auto/ssh/tst_ssh.cpp index 72260c2c9af..dfc60952ae1 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); -- cgit v1.2.3