From 1b412a97ae639f95244284ea8743379a2fbba8d9 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 14 Sep 2022 11:57:08 +0200 Subject: [PATCH] testFileTransfer(): Cleanup remote after successful transfer Change-Id: I770149f69a7ff4c897ad495794b60accddbd67e9 Reviewed-by: Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/filesystemaccess_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/remotelinux/filesystemaccess_test.cpp b/src/plugins/remotelinux/filesystemaccess_test.cpp index cb0cf3b83ee..36d7c9695b8 100644 --- a/src/plugins/remotelinux/filesystemaccess_test.cpp +++ b/src/plugins/remotelinux/filesystemaccess_test.cpp @@ -297,6 +297,11 @@ void FileSystemAccessTest::testFileTransfer() QVERIFY2(result.m_errorString.isEmpty(), qPrintable(result.m_errorString)); QCOMPARE(result.m_exitCode, 0); QCOMPARE(result.m_error, QProcess::UnknownError); + + // Cleanup remote + const FilePath remoteDir = m_device->filePath(QString("/tmp/foo/")); + QString errorString; + QVERIFY2(remoteDir.removeRecursively(&errorString), qPrintable(errorString)); } } // Internal