diff --git a/forester/package.json b/forester/package.json index 5113c31257..667f754e84 100644 --- a/forester/package.json +++ b/forester/package.json @@ -4,7 +4,7 @@ "license": "GPL-3.0", "scripts": { "build": "cargo build", - "test": "source .env && RUST_LOG=forester=debug,forester_utils=debug cargo test --package forester e2e_test -- --nocapture", + "test": "redis-start && RUST_LOG=forester=debug,forester_utils=debug cargo test --package forester e2e_test -- --nocapture", "docker:build": "docker build --tag forester -f Dockerfile .." }, "devDependencies": { diff --git a/scripts/test.sh b/scripts/test.sh index a9dc4c26b1..edf09bf9c3 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash -. "./scripts/devenv.sh" || { echo >&2 "Failed to source devenv.sh. Aborting."; exit 1; } +if [ -z "${LIGHT_PROTOCOL_DEVENV:-}" ]; then + . "./scripts/devenv.sh" || { echo >&2 "Failed to source devenv.sh. Aborting."; exit 1; } +fi set -eux