summaryrefslogtreecommitdiff
path: root/tests/lib/test_frrscript.py
diff options
context:
space:
mode:
authorDonald Lee <dlqs@gmx.com>2021-06-23 00:31:02 +0800
committerDonald Lee <dlqs@gmx.com>2021-06-25 17:29:15 +0800
commit555f7625a8db5ae6a39a400365ce8f635aaf06ee (patch)
treee828ca5bbb5cba7473b2d2dd6f376aac0954406c /tests/lib/test_frrscript.py
parent4b827e08a18fcdd5c97b58c7d18cf7cfe3074315 (diff)
tests: put lua scripting unit tests behind flag
Signed-off-by: Donald Lee <dlqs@gmx.com>
Diffstat (limited to 'tests/lib/test_frrscript.py')
-rw-r--r--tests/lib/test_frrscript.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/lib/test_frrscript.py b/tests/lib/test_frrscript.py
index 46c6d99957..046d97b014 100644
--- a/tests/lib/test_frrscript.py
+++ b/tests/lib/test_frrscript.py
@@ -1,8 +1,14 @@
import frrtest
+import pytest
+if 'S["SCRIPTING_TRUE"]=""\n' not in open("../config.status").readlines():
+ class TestFrrscript:
+ @pytest.mark.skipif(True, reason="Test unsupported")
+ def test_exit_cleanly(self):
+ pass
+else:
-class TestFrrscript(frrtest.TestMultiOut):
- program = "./test_frrscript"
+ class TestFrrscript(frrtest.TestMultiOut):
+ program = "./test_frrscript"
-
-TestFrrscript.exit_cleanly()
+ TestFrrscript.exit_cleanly()