diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2020-05-28 13:48:26 +0300 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2020-06-01 09:39:31 +0000 |
commit | cb159728b68e7f0d799e77570fb1d92b86abb6ce (patch) | |
tree | 921b5125f9adb4ad94fe8ddda56576a6836ea86e /tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp | |
parent | 40a0fdde6208687df7c7e81a2255363d3524110f (diff) |
CLI: Do not run updater if there are no updates for selected components
Task-number: QTIFW-1818
Change-Id: I13dceeeaf294c689a90fbe5fe74586d7a117ea50
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp')
-rw-r--r-- | tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp b/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp index 78ee7b5b6..bf6d8729a 100644 --- a/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp +++ b/tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp @@ -81,6 +81,12 @@ private slots: << "installcontentB.txt" << "installcontentD.txt"); } + void testUpdateNoUpdatesForSelectedPackage() + { + setRepository(":///data/installPackagesRepositoryUpdate"); + QVERIFY(!core->updateComponentsSilently(QStringList() << "componentInvalid")); + } + void testUpdateTwoPackageSilently() { setRepository(":///data/installPackagesRepository"); |