From 1fbaca31a15a37135d8d1de14c56b0df98a8ba1c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 18 Oct 2018 21:41:52 +0200 Subject: [PATCH] Skip the legacy protocol test if that protocol is disabled. --- .gitignore | 2 +- test/legacy-protocol.test | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f3cd877d..1cf6023b 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,7 @@ /test/*.test.* /test/*.log /test/*.trs -/test/pong +/test/splice Makefile Makefile.in core* diff --git a/test/legacy-protocol.test b/test/legacy-protocol.test index ce8e6142..929d2228 100755 --- a/test/legacy-protocol.test +++ b/test/legacy-protocol.test @@ -1,5 +1,10 @@ #!/bin/sh +# Skip this test if the legacy protocol is disabled +if grep -q "define DISABLE_LEGACY 1" "${0%/*}/../config.h"; then + exit 77 +fi + . "${0%/*}/testlib.sh" # Initialize two nodes -- 2.20.1