aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xmlGenerator/Android.mk
diff options
context:
space:
mode:
authorFrédéric Boisnard <fredericx.boisnard@intel.com>2014-01-10 19:47:08 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:04:18 +0100
commit69bf1bfc21517fd000202522d076ba6c1c90a579 (patch)
treec3ba8d6f48b8a6fefbaf6a992eabe4198af4bad6 /tools/xmlGenerator/Android.mk
parenta472fec381e7abc3d9e1384d1b7581a9e304a16c (diff)
downloadexternal_parameter-framework-69bf1bfc21517fd000202522d076ba6c1c90a579.zip
external_parameter-framework-69bf1bfc21517fd000202522d076ba6c1c90a579.tar.gz
external_parameter-framework-69bf1bfc21517fd000202522d076ba6c1c90a579.tar.bz2
Fix hostDomainGenerator.sh concurrency issues
BZ: 151780 When multiple process run hostDomainGenerator.sh, some race conditions occur, despite current locking mechanism. In consequence, the script has been modified in order to make sure that available socket ports can be chosen for test-platform and PFW processes: - portAllocator.py: python script which creates a new socket using a random available port, and displays the port chosen. This port number is then pushed to the end of the available ports list by the system. - hostDomainGenerator.sh: uses portAllocator.py to get free ports for test-platform and the PFW. Fixed multiple issues as well: - When an error occur, a cleanup function was called and sometimes would kill concurrent processes. Now, only the test-platform and PFW instances started by the current hostDomainGenerator.sh script will be stopped, - Test-platform startup was not checked correctly, - The creation of the symlink to libremote-processor.so sometimes failed, leading to an early cleanup. Change-Id: I33b4b2ad5a6c2bbc6f8283222eb2f16f05286734 Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
Diffstat (limited to 'tools/xmlGenerator/Android.mk')
-rw-r--r--tools/xmlGenerator/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/xmlGenerator/Android.mk b/tools/xmlGenerator/Android.mk
index 87144a3..328f70f 100644
--- a/tools/xmlGenerator/Android.mk
+++ b/tools/xmlGenerator/Android.mk
@@ -38,11 +38,19 @@ LOCAL_IS_HOST_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
+LOCAL_MODULE := portAllocator.py
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_IS_HOST_MODULE := true
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
LOCAL_MODULE := hostDomainGenerator.sh
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_REQUIRED_MODULES := \
PFWScriptGenerator.py \
hostConfig.py \
+ portAllocator.py \
test-platform_host \
remote-process_host
LOCAL_MODULE_CLASS := EXECUTABLES