aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_keygen.sh
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-10-18 18:00:00 +1000
committerteor <teor@torproject.org>2019-10-20 19:26:59 +1000
commit012c44538ce15a3e45d6cdea0935062bdcaf5bf4 (patch)
treec15e3ffe3f7068bf538326352729ae5ebf9d1b8f /src/test/test_keygen.sh
parente2280d6f849ea6e00fccc704e91d48a2f6924135 (diff)
downloadtor-012c44538ce15a3e45d6cdea0935062bdcaf5bf4.tar.gz
tor-012c44538ce15a3e45d6cdea0935062bdcaf5bf4.zip
test: Skip test scripts that require the relay module
When tor is built without the relay module. Part of 32123.
Diffstat (limited to 'src/test/test_keygen.sh')
-rwxr-xr-xsrc/test/test_keygen.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test_keygen.sh b/src/test/test_keygen.sh
index cbdfd1909c..57df888274 100755
--- a/src/test/test_keygen.sh
+++ b/src/test/test_keygen.sh
@@ -28,7 +28,10 @@ else
TOR_BINARY="${TESTING_TOR_BINARY}"
fi
-
+if "$TOR_BINARY" --list-modules | grep -q "relay: no"; then
+ echo "This test requires the relay module. Skipping." >&2
+ exit 77
+fi
if [ $# -ge 1 ]; then
dflt=0