Using a temporary directory for the tests
This commit is contained in:
parent
6934383a71
commit
6d11befea1
2 changed files with 3 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1 @@
|
||||||
/venv
|
/logs
|
||||||
/repo
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BASE_DIR="$(pwd)"
|
BASE_DIR="$(mktemp -d)"
|
||||||
VENV_DIR="$BASE_DIR/venv"
|
VENV_DIR="$BASE_DIR/venv"
|
||||||
REPO_DIR="$BASE_DIR/repo"
|
REPO_DIR="$BASE_DIR/repo"
|
||||||
TEST_LOG="$BASE_DIR/test.log"
|
TEST_LOG="$BASE_DIR/test.log"
|
||||||
|
@ -8,7 +8,7 @@ REPO_URL=https://git.platypush.tech/platypush/platypush.git
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
echo "Cleaning up environment"
|
echo "Cleaning up environment"
|
||||||
rm -rf "$VENV_DIR" "$REPO_DIR" "$TEST_LOG"
|
rm -rf "$BASE_DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_venv() {
|
prepare_venv() {
|
||||||
|
|
Loading…
Reference in a new issue