From 6d11befea1f98789cc453ca7beae97eafae13558 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 24 Feb 2021 22:34:35 +0100 Subject: [PATCH] Using a temporary directory for the tests --- .gitignore | 3 +-- bin/run_ci_tests.sh | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 76c7b2b..b6d592e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -/venv -/repo +/logs diff --git a/bin/run_ci_tests.sh b/bin/run_ci_tests.sh index faf04d6..5698158 100755 --- a/bin/run_ci_tests.sh +++ b/bin/run_ci_tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -BASE_DIR="$(pwd)" +BASE_DIR="$(mktemp -d)" VENV_DIR="$BASE_DIR/venv" REPO_DIR="$BASE_DIR/repo" TEST_LOG="$BASE_DIR/test.log" @@ -8,7 +8,7 @@ REPO_URL=https://git.platypush.tech/platypush/platypush.git cleanup() { echo "Cleaning up environment" - rm -rf "$VENV_DIR" "$REPO_DIR" "$TEST_LOG" + rm -rf "$BASE_DIR" } prepare_venv() {