diff --git a/src/plugins/remotelinux/linuxdevicetester.cpp b/src/plugins/remotelinux/linuxdevicetester.cpp index 4c7ac4302b5..869ac90b3e8 100644 --- a/src/plugins/remotelinux/linuxdevicetester.cpp +++ b/src/plugins/remotelinux/linuxdevicetester.cpp @@ -134,14 +134,15 @@ void GenericLinuxDeviceTester::handleEchoDone() else emit errorMessage(tr("echo failed.") + '\n'); setFinished(TestFailure); - } else { - const QString reply = d->echoProcess.stdOut().chopped(1); // Remove trailing \n - if (reply != s_echoContents) - emit errorMessage(tr("Device replied to echo with unexpected contents.") + '\n'); - else - emit progressMessage(tr("Device replied to echo with expected contents.") + '\n'); + return; } + const QString reply = d->echoProcess.stdOut().chopped(1); // Remove trailing \n + if (reply != s_echoContents) + emit errorMessage(tr("Device replied to echo with unexpected contents.") + '\n'); + else + emit progressMessage(tr("Device replied to echo with expected contents.") + '\n'); + testUname(); }