diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2019-05-07 01:22:23 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2019-05-27 21:01:53 +0200 |
commit | bf31c558665fb39157438b5c13930900b91e6364 (patch) | |
tree | 2d71cf7481f4acac2e5e7f25cd2c6dc45dd43bcc /tests/packager-tool | |
parent | 7d861e1dc723e55f019804ac4b15d7287bd54780 (diff) | |
download | qtapplicationmanager-bf31c558665fb39157438b5c13930900b91e6364.tar.gz |
Remove the "install to SDCard" functionality
This was always a nice-to-have extra, but was never actually useful for
users in real world projects. In addition, it
* makes the installer code and tests and lot more complex
* requires a lot of code with root privileges
* uses deprecated kernel interfaces
A replacement (as long as the SD doesn't have to be hot-swappable), is to
either use ext2+encfs to format the SD or create a LUKS container on the SD
and mount that before starting the AM.
Change-Id: I17d3af79d67e1a2bc4c5be55e188826d3c8b2292
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'tests/packager-tool')
-rw-r--r-- | tests/packager-tool/tst_packager-tool.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/packager-tool/tst_packager-tool.cpp b/tests/packager-tool/tst_packager-tool.cpp index 0b6949be..e890f066 100644 --- a/tests/packager-tool/tst_packager-tool.cpp +++ b/tests/packager-tool/tst_packager-tool.cpp @@ -95,7 +95,6 @@ void tst_PackagerTool::initTestCase() QVERIFY(m_workDir.isValid()); QVERIFY(QDir::root().mkpath(pathTo("manifests"))); - QVERIFY(QDir::root().mkpath(pathTo("image-mounts"))); QVERIFY(QDir::root().mkpath(pathTo("internal-0"))); QVERIFY(QDir::root().mkpath(pathTo("documents-0"))); @@ -109,7 +108,7 @@ void tst_PackagerTool::initTestCase() QVector<InstallationLocation> locations = InstallationLocation::parseInstallationLocations({ internalLocation }, m_hardwareId); QString errorString; - m_ai = ApplicationInstaller::createInstance(locations, pathTo("manifests"), pathTo("image-mounts"), m_hardwareId, &errorString); + m_ai = ApplicationInstaller::createInstance(locations, pathTo("manifests"), m_hardwareId, &errorString); QVERIFY2(m_ai, qPrintable(errorString)); QVERIFY(ApplicationManager::createInstance(true)); @@ -141,7 +140,6 @@ void tst_PackagerTool::initTestCase() void tst_PackagerTool::cleanup() { recursiveOperation(pathTo("manifests"), safeRemove); - recursiveOperation(pathTo("image-mounts"), safeRemove); recursiveOperation(pathTo("internal-0"), safeRemove); recursiveOperation(pathTo("documents-0"), safeRemove); |