diff options
| author | Donald Lee <dlqs@gmx.com> | 2021-06-23 00:31:02 +0800 |
|---|---|---|
| committer | Donald Lee <dlqs@gmx.com> | 2021-06-25 17:29:15 +0800 |
| commit | 555f7625a8db5ae6a39a400365ce8f635aaf06ee (patch) | |
| tree | e828ca5bbb5cba7473b2d2dd6f376aac0954406c /tests/lib/test_frrlua.py | |
| parent | 4b827e08a18fcdd5c97b58c7d18cf7cfe3074315 (diff) | |
tests: put lua scripting unit tests behind flag
Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'tests/lib/test_frrlua.py')
| -rw-r--r-- | tests/lib/test_frrlua.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/lib/test_frrlua.py b/tests/lib/test_frrlua.py index e4943f9ae2..2f6ddc1c07 100644 --- a/tests/lib/test_frrlua.py +++ b/tests/lib/test_frrlua.py @@ -1,8 +1,14 @@ import frrtest +import pytest +if 'S["SCRIPTING_TRUE"]=""\n' not in open("../config.status").readlines(): + class TestFrrlua: + @pytest.mark.skipif(True, reason="Test unsupported") + def test_exit_cleanly(self): + pass +else: -class TestFrrlua(frrtest.TestMultiOut): - program = "./test_frrlua" + class TestFrrlua(frrtest.TestMultiOut): + program = "./test_frrlua" - -TestFrrlua.exit_cleanly() + TestFrrlua.exit_cleanly() |
