diff options
author | Katja Marttila <katja.marttila@qt.io> | 2020-06-05 07:41:08 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-06-08 10:01:48 +0300 |
commit | ffccc5a021632ba6989575da46a74bde0269fd8d (patch) | |
tree | 181e2ab65b7bfcd5c10fb47181285a0d509e3a65 /tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp | |
parent | e000c3fc5d2b2b1a6e46902f381cccdf16a38988 (diff) |
Fix InstallAction type when updating components
Components should be selected for update using model, not components own
check state so model values stay in sync. Wrong InstallAction type will
cause component to think it will be installed when that is not the case.
This caused problems in install scripts when trying to figure out if
component is going to be installed or not.
Task-number: QTIFW-1830
Change-Id: I367f476de96f27b27d74e06a6fb630f0876924d2
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp')
-rw-r--r-- | tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp b/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp index bf6d8729a..e260ab175 100644 --- a/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp +++ b/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp @@ -73,12 +73,18 @@ private slots: setRepository(":///data/installPackagesRepositoryUpdate"); core->updateComponentsSilently(QStringList() << "componentA"); + // componentD is autodependent and cannot be deselected + // componentE is a forced component and thus will be updated VerifyInstaller::verifyInstallerResources(m_installDir, "componentA", "2.0.0content.txt"); VerifyInstaller::verifyInstallerResources(m_installDir, "componentB", "1.0.0content.txt"); + VerifyInstaller::verifyInstallerResources(m_installDir, "componentD", "2.0.0content.txt"); + VerifyInstaller::verifyInstallerResources(m_installDir, "componentE", "2.0.0content.txt"); VerifyInstaller::verifyInstallerResourceFileDeletion(m_installDir, "componentA", "1.0.0content.txt"); + VerifyInstaller::verifyInstallerResourceFileDeletion(m_installDir, "componentD", "1.0.0content.txt"); + VerifyInstaller::verifyInstallerResourceFileDeletion(m_installDir, "componentE", "1.0.0content.txt"); VerifyInstaller::verifyFileExistence(m_installDir, QStringList() << "components.xml" << "installcontentA_update.txt" - << "installcontentE.txt" << "installcontentG.txt" - << "installcontentB.txt" << "installcontentD.txt"); + << "installcontentE_update.txt" << "installcontentG.txt" + << "installcontentB.txt" << "installcontentD_update.txt"); } void testUpdateNoUpdatesForSelectedPackage() |