X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Fovsdb.at;h=3e9918ab4a024414b5dae7562f7b76f7ff226ca7;hb=6d308b28c023e864925b1a6775b3b91d215e89bf;hp=d64d75e54acadc3176e0ce6ccb9bce40c39cdbfa;hpb=991559357f6a03c3a5b70c053c8c2554aa8d5ee4;p=sliver-openvswitch.git diff --git a/tests/ovsdb.at b/tests/ovsdb.at index d64d75e54..3e9918ab4 100644 --- a/tests/ovsdb.at +++ b/tests/ovsdb.at @@ -12,26 +12,26 @@ m4_define([OVSDB_CHECK_POSITIVE], AT_CLEANUP]) # OVSDB_CHECK_POSITIVE_PY(TITLE, TEST-OVSDB-ARGS, OUTPUT, [KEYWORDS], [PREREQ], -# [XFAIL]) +# [PY-CHECK]) # # Runs "test-ovsdb.py TEST-OVSDB-ARGS" and checks that it exits with # status 0 and prints OUTPUT on stdout. # -# If XFAIL is nonempty then the test is expected to fail (presumably because -# this test works in the C implementation but does not work in Python yet) +# PY-CHECK is expanded before the check. It can check for features of the +# Python implementation that are required for the test to pass. # # TITLE is provided to AT_SETUP and KEYWORDS to AT_KEYWORDS. m4_define([OVSDB_CHECK_POSITIVE_PY], [AT_SETUP([$1]) AT_SKIP_IF([test $HAVE_PYTHON = no]) - m4_if([$6], [], [], [AT_XFAIL_IF([:])]) + $6 AT_KEYWORDS([ovsdb positive Python $4]) AT_CHECK([$PYTHON $srcdir/test-ovsdb.py $2], [0], [$3 ], []) AT_CLEANUP]) # OVSDB_CHECK_POSITIVE_CPY(TITLE, TEST-OVSDB-ARGS, OUTPUT, [KEYWORDS], -# [PREREQ], [PY-XFAIL]) +# [PREREQ], [PY-CHECK]) # # Runs identical C and Python tests, as specified. m4_define([OVSDB_CHECK_POSITIVE_CPY], @@ -104,4 +104,3 @@ m4_include([tests/ovsdb-tool.at]) m4_include([tests/ovsdb-server.at]) m4_include([tests/ovsdb-monitor.at]) m4_include([tests/ovsdb-idl.at]) -m4_include([tests/ovsdb-idl-py.at])