Fixed dbus testing container configuration. 34/48734/2
authorPawel Kubik <p.kubik@samsung.com>
Fri, 25 Sep 2015 12:10:29 +0000 (14:10 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 28 Sep 2015 09:10:30 +0000 (02:10 -0700)
[Feature]       Fix
[Cause]         Zone stopped immediately after start.
[Solution]      Added sleep-loop to prevent zone from stopping.
[Verification]  Build (best under CCOV config), install, run:
                sudo vsm_launch_test.py vasum-server-unit-tests \
                -t 'ZoneSuite/DbusConnection'

Change-Id: I1ffc9eb047f08173314c16c60ef505f0d81c11c6

tests/unit_tests/configs/templates/console-dbus.conf.in

index 2dee28b..8ab8b98 100644 (file)
@@ -1,6 +1,6 @@
 {
     "zoneTemplate" : "minimal.sh",
-    "initWithArgs" : ["/bin/bash", "-c", "trap exit SIGTERM; /bin/dbus-daemon --config-file=@VSM_TEST_CONFIG_INSTALL_DIR@/dbus/ut-dbus-system.conf --fork"],
+    "initWithArgs" : ["/bin/bash", "-c", "trap exit SIGTERM; /bin/dbus-daemon --config-file=@VSM_TEST_CONFIG_INSTALL_DIR@/dbus/ut-dbus-system.conf --fork; while true; do sleep 0.1; done"],
     "requestedState" : "running",
     "ipv4Gateway" : "",
     "ipv4" : "",