File tree Expand file tree Collapse file tree
environment/aws/topology_setup/test_server_platforms Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,12 +258,7 @@ def _copy_dataset(self) -> None:
258258 # and instead only copy the one that is going to be built
259259 # so that way there is no need to keep a manual list of versions
260260 # here.
261- dest_dir = (
262- JAK_TEST_SERVER_DIR
263- / self .test_server_path
264- / "assets"
265- / self .dataset_version
266- )
261+ dest_dir = JAK_TEST_SERVER_DIR / "assets" / self .dataset_version
267262 dest_dir .mkdir (0o755 , parents = True , exist_ok = True )
268263 copy_dataset (dest_dir , self .dataset_version )
269264
Original file line number Diff line number Diff line change 22
33SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
44
5+ # kill logcat
6+ logcat_pid=$( cat $SCRIPT_DIR /logcat.pid)
7+ if [ -n " $logcat_pid " ]; then
8+ kill $logcat_pid
9+ fi
10+
511export PYTHONPATH=$SCRIPT_DIR /../../../
612pushd $SCRIPT_DIR /../../../environment/aws
713python3 -m venv venv
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash -e
22# Build the Android test server, deploy it, and run the tests
33
4+ trap ' echo "$BASH_COMMAND (line $LINENO) failed, exiting..."; exit 1' ERR
5+
46BUILD_TOOLS_VERSION=' 34.0.0'
57SDK_MGR=" ${ANDROID_HOME} /cmdline-tools/latest/bin/sdkmanager --channel=1"
68SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
4143fi
4244deactivate
4345
44- # The following appears to be incomplete as it hangs the script here...
45- # echo "Start logcat"
46- # pushd $SCRIPT_DIR
47- # python3 logcat.py
48- # echo $! > logcat.pid
46+ echo " Start logcat"
47+ pushd $SCRIPT_DIR
48+ python3 logcat.py &
49+ echo $! > logcat.pid
4950
5051pushd $SCRIPT_DIR /../../../tests/dev_e2e > /dev/null
5152rm -rf venv http_log testserver.log
@@ -56,7 +57,3 @@ pip install -r requirements.txt
5657echo " Run the tests"
5758adb shell input keyevent KEYCODE_WAKEUP
5859pytest --maxfail=7 -W ignore::DeprecationWarning --config config.json
59-
60- echo " Tests complete: $STATUS "
61- exit $STATUS
62-
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3+ trap ' echo "$BASH_COMMAND (line $LINENO) failed, exiting..."; exit 1' ERR
4+
35SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
46
57function usage() {
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3+ trap ' echo "$BASH_COMMAND (line $LINENO) failed, exiting..."; exit 1' ERR
4+
35SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
46
57function usage() {
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3+ trap ' echo "$BASH_COMMAND (line $LINENO) failed, exiting..."; exit 1' ERR
4+
35EDITION=${1}
46CBL_VERSION=${2}
57CBL_BLD_NUM=${3}
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3+ trap ' echo "$BASH_COMMAND (line $LINENO) failed, exiting..."; exit 1' ERR
4+
35SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
6+ ROOT_DIR=$SCRIPT_DIR /../../../..
7+ SHARED_DIR=" ${SCRIPT_DIR} /../../shared"
48
59function usage() {
610 echo " Usage: $0 <version> <dataset_version> <platform> <sgw_version> [private_key_path]"
@@ -23,18 +27,18 @@ cbl_version=$1
2327dataset_version=$2
2428sgw_version=$3
2529
26- source $SCRIPT_DIR /../shared /check_python_version.sh
30+ source $SHARED_DIR /check_python_version.sh
2731
2832create_venv venv
2933source venv/bin/activate
30- pip install -r $SCRIPT_DIR /../../../.. /environment/aws/requirements.txt
34+ pip install -r $ROOT_DIR /environment/aws/requirements.txt
3135if [ -n " $private_key_path " ]; then
3236 python3 $SCRIPT_DIR /setup_test.py $cbl_version $dataset_version $sgw_version --private_key $private_key_path
3337else
3438 python3 $SCRIPT_DIR /setup_test.py $cbl_version $dataset_version $sgw_version
3539fi
3640
37- pushd $SCRIPT_DIR /../../../.. /tests/dev_e2e
41+ pushd $ROOT_DIR /tests/dev_e2e
3842pip install -r requirements.txt
3943pytest --maxfail=7 -W ignore::DeprecationWarning --config config.json
4044deactivate
Original file line number Diff line number Diff line change 11#! /bin/bash -e
22
3+ trap ' echo "$BASH_COMMAND (line $LINENO) failed, exiting..."; exit 1' ERR
4+
35SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
6+ ROOT_DIR=$SCRIPT_DIR /../../../..
7+ SHARED_DIR=" ${SCRIPT_DIR} /../../shared"
48
59function usage() {
610 echo " Usage: $0 <version> <dataset_version> <sgw_version> [private_key_path]"
@@ -23,18 +27,18 @@ cbl_version=$1
2327dataset_version=$2
2428sgw_version=$3
2529
26- source $SCRIPT_DIR /../shared /check_python_version.sh
30+ source $SHARED_DIR /check_python_version.sh
2731
2832create_venv venv
2933source venv/bin/activate
30- pip install -r $SCRIPT_DIR /../../../.. /environment/aws/requirements.txt
34+ pip install -r $ROOT_DIR /environment/aws/requirements.txt
3135if [ -n " $private_key_path " ]; then
3236 python3 $SCRIPT_DIR /setup_test.py $cbl_version $dataset_version $sgw_version --private_key $private_key_path
3337else
3438 python3 $SCRIPT_DIR /setup_test.py $cbl_version $dataset_version $sgw_version
3539fi
3640
37- pushd $SCRIPT_DIR /../../../.. /tests/dev_e2e
41+ pushd $ROOT_DIR /tests/dev_e2e
3842pip install -r requirements.txt
3943pytest --maxfail=7 -W ignore::DeprecationWarning --config config.json
4044deactivate
You can’t perform that action at this time.
0 commit comments