[gnome-software: 1/29] fwupd: Adjust a message checked in a test
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/29] fwupd: Adjust a message checked in a test
- Date: Mon, 6 Dec 2021 10:24:17 +0000 (UTC)
commit 692cdfcb90825d0aa79b4f6beb764517fc1fc7b5
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Dec 1 16:19:15 2021 +0000
fwupd: Adjust a message checked in a test
The message changed in fwupd 1.7.1, causing the test to fail if that
version of the daemon is running.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
plugins/fwupd/gs-self-test.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/plugins/fwupd/gs-self-test.c b/plugins/fwupd/gs-self-test.c
index f8298ced6..ef3fe263b 100644
--- a/plugins/fwupd/gs-self-test.c
+++ b/plugins/fwupd/gs-self-test.c
@@ -8,6 +8,8 @@
#include "config.h"
+#include <fwupd.h>
+
#include "gnome-software-private.h"
#include "gs-test.h"
@@ -50,8 +52,17 @@ gs_plugins_fwupd_func (GsPluginLoader *plugin_loader)
g_assert_cmpstr (gs_app_get_description (app), ==,
"This is the first paragraph in the example "
"cab file.\n\nThis is the second paragraph.");
+#if FWUPD_CHECK_VERSION(1, 7, 1)
+ /* Changes introduced in fwupd commit d3706e0e0b0fc210796da839b84ac391f7a251f8 */
+ g_assert_cmpstr (gs_app_get_update_details_markup (app), ==,
+ "Some of the platform secrets may be invalidated when "
+ "updating this firmware. Please ensure you have the "
+ "volume recovery key before continuing.\n\nLatest "
+ "firmware release.");
+#else
g_assert_cmpstr (gs_app_get_update_details_markup (app), ==,
"Latest firmware release.");
+#endif
/* seems wrong, but this is only set if the update is available */
g_assert_cmpint (gs_app_get_state (app), ==, GS_APP_STATE_UNKNOWN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]