From cb159728b68e7f0d799e77570fb1d92b86abb6ce Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Thu, 28 May 2020 13:48:26 +0300 Subject: CLI: Do not run updater if there are no updates for selected components Task-number: QTIFW-1818 Change-Id: I13dceeeaf294c689a90fbe5fe74586d7a117ea50 Reviewed-by: Katja Marttila --- tests/auto/installer/commandlineupdate/tst_commandlineupdate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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"); -- cgit v1.2.3