From 7eec7c27f433925a21d5ebf3cc5a8679323a7d65 Mon Sep 17 00:00:00 2001 From: zramsay Date: Sat, 6 Oct 2018 12:08:28 -0400 Subject: [PATCH] ah --- .circleci/config.yml | 2 +- Makefile | 4 +++- test/p2p/circleci.sh | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f741ab5..55a3da4f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -302,7 +302,7 @@ jobs: - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint - run: bash test/p2p/circleci.sh - store_artifacts: - path: $GOPATH/src/github.com/tendermint/tendermint/test/logs + path: /home/circleci/project/test/p2p/logs upload_coverage: <<: *defaults diff --git a/Makefile b/Makefile index 4f5a5b8c..5711e431 100644 --- a/Makefile +++ b/Makefile @@ -182,7 +182,9 @@ test_p2p: cd .. # requires 'tester' the image from above bash test/p2p/test.sh tester - docker cp rsyslog:/var/log test/logs + # the `docker cp` takes a really long time; uncomment for debugging + # + # mkdir -p test/p2p/logs && docker cp rsyslog:/var/log test/p2p/logs test_integrations: make build_docker_test_image diff --git a/test/p2p/circleci.sh b/test/p2p/circleci.sh index 16f23fca..c548d575 100644 --- a/test/p2p/circleci.sh +++ b/test/p2p/circleci.sh @@ -6,7 +6,7 @@ SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -LOGS_DIR="$DIR/../logs" +LOGS_DIR="$DIR/logs" echo echo "* [$(date +"%T")] cleaning up $LOGS_DIR" rm -rf "$LOGS_DIR" @@ -35,5 +35,5 @@ echo "* [$(date +"%T")] running p2p tests on a local docker network" bash "$DIR/../p2p/test.sh" tester echo -echo "* [$(date +"%T")] copying log files out of docker container in $LOGS_DIR" +echo "* [$(date +"%T")] copying log files out of docker container into $LOGS_DIR" docker cp rsyslog:/var/log $LOGS_DIR