14 lines
276 B
Bash
14 lines
276 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ -z $REAL_DEVICE ]; then
|
||
|
python3 -m src.app
|
||
|
else
|
||
|
CMD="appium"
|
||
|
if [ ! -z "$CONNECT_TO_GRID" ]; then
|
||
|
NODE_CONFIG_JSON="/root/src/nodeconfig.json"
|
||
|
/root/generate_config.sh $NODE_CONFIG_JSON
|
||
|
CMD+=" --nodeconfig $NODE_CONFIG_JSON"
|
||
|
fi
|
||
|
$CMD
|
||
|
fi
|