Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wildum committed Oct 11, 2023
1 parent 569d6e9 commit dfb69cd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions integration-tests/tests/run-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ cleanup() {
if [ "$failed" -eq "1" ]; then
echo "Capturing grafana-agent-flow logs due to a failure..."
cat "$logfile"
echo "Capturing logs from otel-collector..."
docker ps
docker logs tests_otel-collector_1 || true
docker-compose down
fi
kill $AGENT_PID || true
Expand All @@ -28,13 +25,8 @@ success() {
exit 0
}

# Check if running in GitHub Actions or locally
# if [ "$GITHUB_ACTIONS" == "true" ]; then
# AGENT_BINARY_PATH="./grafana-agent-flow" # Assuming you've moved the binary to this path before running the script
# else
make -C ../.. agent-flow
AGENT_BINARY_PATH="../../../build/grafana-agent-flow"
# fi
make -C ../.. agent-flow
AGENT_BINARY_PATH="../../../build/grafana-agent-flow"

trap cleanup EXIT ERR

Expand Down

0 comments on commit dfb69cd

Please sign in to comment.