Automake is supposed to set this for a full testrun. Signed-off-by: Phil Sutter --- tests/py/nft-test.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py index 78f3fa9b27df7..52be394c1975a 100755 --- a/tests/py/nft-test.py +++ b/tests/py/nft-test.py @@ -1517,6 +1517,13 @@ def set_delete_elements(set_element, set_name, table, filename=None, signal.signal(signal.SIGINT, signal_handler) signal.signal(signal.SIGTERM, signal_handler) + try: + if os.environ["RUN_FULL_TESTSUITE"] != 0: + enable_json_option = True + enable_json_schema = True + except KeyError: + pass + if os.getuid() != 0: print("You need to be root to run this, sorry") return 77 -- 2.49.0