Code Monkey home page Code Monkey logo

Comments (3)

hardys avatar hardys commented on June 29, 2024

IMHO this isn't a bug, we deliberately don't remove $WORKING_DIR or you'd have to download multi-gigabyte qcow2 files every single test iteration.

Sounds like you changed users after the initial run, so some manual cleanup seems acceptable in that case, if the alternative is causing every other user to spend more time/bandwidth during testing?

from dev-scripts.

hardys avatar hardys commented on June 29, 2024

I guess the alternative in common.sh is to change this:

if [ ! -d "$WORKING_DIR" ]; then
  echo "Creating Working Dir"
  sudo mkdir "$WORKING_DIR"
  sudo chown "${USER}:${USER}" "$WORKING_DIR"
  chmod 755 "$WORKING_DIR"
fi

to

if [ ! -d "$WORKING_DIR" ]; then
  echo "Creating Working Dir"
  sudo mkdir "$WORKING_DIR"
fi
sudo chown -R "${USER}:${USER}" "$WORKING_DIR"
chmod 755 "$WORKING_DIR"

from dev-scripts.

hardys avatar hardys commented on June 29, 2024

I'm going to close this as I think the recursive chown is likely to break things where we've got existing files owned e.g by root and not $USER. In the case where you choose to switch to a different non-root user I think it's acceptable to do some manual cleanup.

from dev-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.