Enable to specify port
This commit is contained in:
parent
b7f332fd3b
commit
32258461be
3
genymotion/example/sample_devices/devices.json
Normal file → Executable file
3
genymotion/example/sample_devices/devices.json
Normal file → Executable file
|
@ -1,7 +1,8 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"template": "Samsung Galaxy S7 - 6.0.0 - API 23 - 1440x2560",
|
"template": "Samsung Galaxy S7 - 6.0.0 - API 23 - 1440x2560",
|
||||||
"device": "SamsungS7V6"
|
"device": "SamsungS7V6",
|
||||||
|
"port": 38727
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"template": "Google Nexus 6 - 8.0 - API 26 - 1440x2560",
|
"template": "Google Nexus 6 - 8.0 - API 26 - 1440x2560",
|
||||||
|
|
|
@ -20,8 +20,15 @@ function prepare_geny_cloud() {
|
||||||
|
|
||||||
template=$(get_value '.template')
|
template=$(get_value '.template')
|
||||||
device=$(get_value '.device')
|
device=$(get_value '.device')
|
||||||
|
port=$(get_value '.port')
|
||||||
|
|
||||||
|
if [[ $port != null ]]; then
|
||||||
|
echo "Starting \"$device\" with template name \"$template\" on port \"$port\"..."
|
||||||
|
gmtool --cloud admin startdisposable "${template}" "${device}" --adb-serial-port "${port}"
|
||||||
|
else
|
||||||
echo "Starting \"$device\" with template name \"$template\"..."
|
echo "Starting \"$device\" with template name \"$template\"..."
|
||||||
gmtool --cloud admin startdisposable "${template}" "${device}"
|
gmtool --cloud admin startdisposable "${template}" "${device}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue