RemoteLinux: Move test actions to special test dir

Change-Id: I9be4a1e7de1ae1accc507109bcf5f3b6188a8925
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Artem Sokolovskii
2022-01-04 15:11:49 +01:00
parent 6635678a1c
commit aafb5cb9a3
3 changed files with 29 additions and 18 deletions

View File

@@ -404,7 +404,6 @@ QString LinuxDevice::userAtHost() const
bool LinuxDevice::handlesFile(const FilePath &filePath) const
{
DEBUG("handlesFile " << filePath.scheme() << filePath.host() << userAtHost());
return filePath.scheme() == "ssh" && filePath.host() == userAtHost();
}
@@ -555,7 +554,7 @@ bool LinuxDevice::removeRecursively(const FilePath &filePath) const
// We are expecting this only to be called in a context of build directories or similar.
// Chicken out in some cases that _might_ be user code errors.
QTC_ASSERT(path.startsWith('/'), return false);
const int levelsNeeded = path.startsWith("/home/") ? 4 : 3;
const int levelsNeeded = path.startsWith("/home/") ? 3 : 2;
QTC_ASSERT(path.count('/') >= levelsNeeded, return false);
return d->runInShell({"rm", {"-rf", "--", path}});