testFileTransfer(): Cleanup remote after successful transfer

Change-Id: I770149f69a7ff4c897ad495794b60accddbd67e9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2022-09-14 11:57:08 +02:00
parent 0b90c6c6f6
commit 1b412a97ae

View File

@@ -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