]> git.proxmox.com Git - mirror_ovs.git/commitdiff
tests: Only run python SSL test if SSL support is configured
authorSimon Horman <simon.horman@netronome.com>
Wed, 3 May 2017 14:33:06 +0000 (16:33 +0200)
committerSimon Horman <simon.horman@netronome.com>
Thu, 4 May 2017 07:26:58 +0000 (09:26 +0200)
Only run python SSL test, which invokes ovsdb with a --remote=pssl,
if SSL support is configured.

Without this change the following error appears when running
the test-suite when OVS is configured with --disable-ssl.

+ovsdb-server: Private key specified but Open vSwitch was built without SSL support
./ovsdb-idl.at:1215: exit code was 1, expected 0

Fixes: d90ed7d65ba8 ("python: Add SSL support to the python ovs client library")
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Ben Pfaff <blp@ovn.org>
tests/ovsdb-idl.at

index d2c1ea6f3aaa172d80541c533b2a8f33ace3b395..d28dfc11e78626efb5e888c7fb74ef2b3e5b8443 100644 (file)
@@ -1183,6 +1183,7 @@ m4_define([OVSDB_CHECK_IDL_NOTIFY_PY],
 # This test uses the Python IDL implementation with ssl
 m4_define([OVSDB_CHECK_IDL_NOTIFY_SSL_PY],
   [AT_SETUP([$1 - SSL])
+   AT_SKIP_IF([test "$HAVE_OPENSSL" = no])
    AT_SKIP_IF([test $HAVE_PYTHON = no])
    $PYTHON -m OpenSSL.SSL
    SSL_PRESENT=$?