Sync time for "Priority" attribute write to update.
Setting the "Priority" value triggers a chain reaction to update
the priorities for other versions and set the boot version via
systemd service files that are async.
As a work-around for openbmc/openbmc#2857, explicitly wait 10s
after writting the "Priority" value.
Change-Id: I69bac0712ad6e4356f7cc14d50ebca9826783280
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index 5c8d025..978ddcd 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -112,6 +112,9 @@
${args}= Create Dictionary data=${data}
Write Attribute ${host_object} ${sw_attribute} data=${args}
+ # Sync time for software updater manager to update.
+ # TODO: openbmc/openbmc#2857
+ Sleep 10s
Set Property To Invalid Value And Verify No Change