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

Commit 8e954a0d authored by Jack He's avatar Jack He
Browse files

GD-Cert: Fix --clean option when RAM disk is used

* When RAM disk is used, $CERT_TEST_VENV is a symbolic link, rm -rf
  this directory will only remove the symbolic link instead of cleaning
  up its content

Bug: 159255653
Fixes: 159255653
Tag: #gd-refactor
Test: gd/cert/run --clean
Change-Id: I713a1a0df737aacec4e51bfa58e8ca6f8a52c2b8
parent 0feb4f51
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ function parse_options {
    INSTALL_ARGS="--reuse-acts"
    if [ "$CLEAN_VENV" == true ] ; then
      echo -e "${YELLOW}Cleaning up existing virtualenv${NOCOLOR}"
      rm -rf $CERT_TEST_VENV/*
      rm -rf $CERT_TEST_VENV
      mkdir -p ${CERT_TEST_VENV}
      INSTALL_ARGS=""