-
Committer:
CI Train Bot
-
Author(s):
Lars Uebernickel
-
Date:
2015-10-02 17:09:55 UTC
-
mfrom:
(95.1.1 trunk)
-
Revision ID:
ci-train-bot@canonical.com-20151002170955-c5y1arqd0vx9ond6
test-param-wait-system: fix race between tasks
Calling RequestName with gdbus-tool to signal the tested binary that a name is owned is racy: since the name is only owned very shortly, the watch might not have been established before the name is already gone again.
Fix this by holding on to the name a bit longer with the test-own-name helper (add a --system flag to that). A better fix would be to only start the second task when the watch has been established. dbus-test-runner always starts tasks in parallel though and changing this would further complicate its command line interface.
Approved by: Iain Lane, PS Jenkins bot