[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [fallback-scripts/master] test: Handle the log file in Travis, not the test script
commit 34df66d2b648b61a714b7ba5450eb15f7a7d6259
Author: teor <teor@xxxxxxxxxxxxxx>
Date: Mon Dec 2 14:45:20 2019 +1000
test: Handle the log file in Travis, not the test script
Part of 28863.
---
.travis.yml | 4 ++--
test.sh | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index a219026..2d0bcf4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -128,8 +128,8 @@ install:
script:
## Run some fallback-scripts tests
- ## Outputs fallback.log with info-level logs
- - ./test.sh
+ ## Hide info-level logs, unless there is an error
+ - ./test.sh 2>&1 | tee fallback.log | grep -v "INFO::"
after_failure:
## Show all the output, including info-level logs
diff --git a/test.sh b/test.sh
index bffebc1..eddc624 100755
--- a/test.sh
+++ b/test.sh
@@ -36,5 +36,4 @@ $PYTHON lookupFallbackDirContact.py $TEST_RELAY_LIST
# If we get the top 200 relays from Onionoo, we generate a list with about
# 10 fallbacks
export TOR_FB_ONIONOO_LIMIT=200
-# Hide info-level logs
-$PYTHON updateFallbackDirs.py 2>&1 | tee -a fallback.log | grep -v "INFO::"
+$PYTHON updateFallbackDirs.py
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits