From 60f07ce756a74157659c4cde0eccfacb3d2e5053 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 11 Dec 2024 15:03:09 +0100 Subject: [PATCH] Use different folder for storing pids and gitignore as needed --- .gitignore | 1 + scripts/start-test-environment.sh | 2 +- scripts/stop-test-environment.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8f4479dd1..bb57d438f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ certificates/etag-*.txt # Ignore temporary files generated by the testing proxy. tests/utils/proxy/__pycache__ tests/utils/proxy/*.pid +tests/utils/pids diff --git a/scripts/start-test-environment.sh b/scripts/start-test-environment.sh index 66be8ad79..dfe3e80f8 100755 --- a/scripts/start-test-environment.sh +++ b/scripts/start-test-environment.sh @@ -45,7 +45,7 @@ if [ $sourced -eq 0 ]; then fi fi -PID_DIR="${PROJECT_ROOT}/.test-pids" +PID_DIR="${PROJECT_ROOT}/tests/utils/pids" # Check if mitmproxy is installed if ! command -v mitmdump >/dev/null 2>&1; then diff --git a/scripts/stop-test-environment.sh b/scripts/stop-test-environment.sh index 5e4654580..b00c631a0 100755 --- a/scripts/stop-test-environment.sh +++ b/scripts/stop-test-environment.sh @@ -11,7 +11,7 @@ else SCRIPT_DIR="$PROJECT_ROOT/scripts" fi -PID_DIR="${PROJECT_ROOT}/.test-pids" +PID_DIR="${PROJECT_ROOT}/tests/utils/pids" # Function to safely kill a process kill_process() {