[tor-commits] [sbws/master] fix: CI: Exit from integration script
juga at torproject.org
juga at torproject.org
Tue Mar 16 14:19:10 UTC 2021
commit a49cf7029bf5b3a6414ca89fd31a243bec319ef4
Author: juga0 <juga at riseup.net>
Date: Wed Mar 3 12:38:18 2021 +0000
fix: CI: Exit from integration script
when any of the commands fail.
---
tests/integration/run.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/integration/run.sh b/tests/integration/run.sh
index e870b50..70ee5f2 100755
--- a/tests/integration/run.sh
+++ b/tests/integration/run.sh
@@ -1,5 +1,8 @@
#!/bin/bash
-set -x
+# Instead of exiting inmmediately when any of this commands fail,
+# the scanner, generate and coverage lines could continue and store there was
+# an error on that command. It's just simpler with `-e`.
+set -ex
tests/integration/start_chutney.sh
python3 scripts/tools/sbws-http-server.py --port 28888 &>/dev/null &
More information about the tor-commits
mailing list