From d73aa123d7773f5ee9ec22b11f487b0f16f4630e Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sun, 20 Oct 2024 10:17:31 -0400 Subject: [PATCH] show stderr/stdout for test debugging --- .github/workflows/e2etest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2etest.yml b/.github/workflows/e2etest.yml index 4ee1954a..ad35bcc4 100644 --- a/.github/workflows/e2etest.yml +++ b/.github/workflows/e2etest.yml @@ -13,7 +13,8 @@ jobs: tar -xzf geocache.tgz - name: Run geocoder run: | - poetry run oldnyc/geocode/geocode.py --ids_filter test/random200-ids.txt --images_ndjson data/images.ndjson --output_format id-location.txt --geocode > test/random200-geocoded.txt 2> test/random200.logs.txt + poetry run oldnyc/geocode/geocode.py --ids_filter test/random200-ids.txt --images_ndjson data/images.ndjson --output_format id-location.txt --geocode > >(tee test/random200-geocoded.txt) 2> >(tee test/random200.logs.txt >&2) + # See https://stackoverflow.com/a/692407/388951 for the stdout/stderr redirection - name: Check for diffs run: | git diff --exit-code test/