Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5428d2d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Virtualenv: Check return value before popd" am: 84003835

Change-Id: I90249a43bcbe119d58097ce4c47c3820e2c4d623
parents a8eaf1ef 84003835
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -149,11 +149,12 @@ fi
pushd .
cd $ANDROID_BUILD_TOP/packages/modules/Bluetooth/system/gd
virtualenv -p python3.8 gd_cert_venv
popd
if [[ $? -ne 0 ]] ; then
    echo "Error setting up virtualenv"
    popd
    return 1
fi
popd

# Set up artifacts
pushd .
@@ -184,12 +185,13 @@ popd
# Activate virtualenv
pushd .
source $ANDROID_BUILD_TOP/packages/modules/Bluetooth/system/gd/gd_cert_venv/bin/activate
popd
if [[ $? -ne 0 ]] ; then
    echo "Failed to activate virtualenv"
    deactivate
    popd
    return 1
fi
popd
if [[ -z "$ANDROID_BUILD_TOP" ]] ; then
    echo "Failed to inherit Android build environment"
    deactivate