From: chen Date: Tue, 30 Apr 2024 05:18:07 +0000 (+0800) Subject: [common][bluetooth] fix block issue on rpi4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F310505%2F2;p=test%2Ftct%2Fweb%2Fapi.git [common][bluetooth] fix block issue on rpi4 Change-Id: I079b1a9e740d54cbe23ba0021e57e05e785088ee Signed-off-by: chen --- diff --git a/common/tct-bluetooth-tizen-tests/bluetooth/support/unitcommon.js b/common/tct-bluetooth-tizen-tests/bluetooth/support/unitcommon.js index 20fcfe78b..2a2a4ffa1 100755 --- a/common/tct-bluetooth-tizen-tests/bluetooth/support/unitcommon.js +++ b/common/tct-bluetooth-tizen-tests/bluetooth/support/unitcommon.js @@ -43,9 +43,17 @@ NOT_FOUND_EXCEPTION = {name: 'NotFoundError'}; INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'}; IO_EXCEPTION = {name: 'IOError'}; SECURITY_EXCEPTION = {name: 'SecurityError'}; -BT_SUPPORT = webapis.featureconfig.getFeatureConfigBool("com.samsung/featureconf/bluetooth.support"); -LE_SUPPORT = webapis.featureconfig.getFeatureConfigBool("com.samsung/featureconf/bluetooth_le_supported"); -LE_GATT_SUPPORT = webapis.featureconfig.getFeatureConfigBool("com.samsung/featureconf/bluetooth_le_gatt_client_supported"); + +try { + BT_SUPPORT = webapis.featureconfig.getFeatureConfigBool("com.samsung/featureconf/bluetooth.support"); + LE_SUPPORT = webapis.featureconfig.getFeatureConfigBool("com.samsung/featureconf/bluetooth_le_supported"); + LE_GATT_SUPPORT = webapis.featureconfig.getFeatureConfigBool("com.samsung/featureconf/bluetooth_le_gatt_client_supported"); +} catch(e) { + console.log(" webapis.featureconfig.getFeatureConfigBool Exception. reason : " + e.message + "(" + e.code + ")"); + BT_SUPPORT = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth"); + LE_SUPPORT = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth.le"); + LE_GATT_SUPPORT = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth.le.gatt.client"); +} (function () { var head_src = document.head.innerHTML;