diff options
author | Eike Ziller <eike.ziller@qt.io> | 2022-04-20 10:27:18 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2022-04-21 06:56:56 +0000 |
commit | d1686e18679fd229d2bfa45828a79004cad1e052 (patch) | |
tree | fc099c5b39e672693222d33d0ae95928f887a55e /tests | |
parent | 98dda165e4007d3eeda9896b21163d79693c94c0 (diff) | |
download | qt-creator-d1686e18679fd229d2bfa45828a79004cad1e052.tar.gz |
UpdateInfo: Fix parsing of update info
It was no longer showing any updates. At some point MaintenanceTool
added <?xml...> headers to its responses, which broke our combine-and-
parse hack, since such a header in the middle of XML is invalid.
Add a hack that removes these headers first. This should be refactored
without the use of ShellCommand in master, because that doesn't allow us
to access the output of the two jobs separately.
Change-Id: I7248b070a8edb1a45248b3531ed50bb0d94eef73
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/updateinfo/tst_updateinfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/updateinfo/tst_updateinfo.cpp b/tests/auto/updateinfo/tst_updateinfo.cpp index 55e61a16c2..1fa1686919 100644 --- a/tests/auto/updateinfo/tst_updateinfo.cpp +++ b/tests/auto/updateinfo/tst_updateinfo.cpp @@ -45,9 +45,11 @@ void tst_UpdateInfo::updates_data() QTest::addColumn<QList<QtPackage>>("xpackages"); QTest::newRow("updates and packages") - << R"raw(<updates> + << R"raw(<?xml version="1.0"?> + <updates> <update name="Qt Design Studio 3.2.0" version="3.2.0-0-202203291247" size="3113234690" id="qt.tools.qtdesignstudio"/> </updates> + <?xml version="1.0"?> <availablepackages> <package name="qt.qt6.621" displayname="Qt 6.2.1" version="6.2.1-0-202110220854"/> <package name="qt.qt5.5152" displayname="Qt 5.15.2" version="5.15.2-0-202011130607" installedVersion="5.15.2-0-202011130607"/> |