summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2021-05-19 21:17:47 -0400
committermormj <34754695+mormj@users.noreply.github.com>2021-05-20 07:14:29 -0400
commita7dbb78743964e434eef9b2582c56c0f84d70759 (patch)
tree268e21eaa46eea0317d5b5a40fed411749603338
parentb930b98f7c3847305f7fcae43785a2c6a27fe6d4 (diff)
grc: exclude examples test from make test
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
-rw-r--r--grc/tests/CMakeLists.txt2
-rw-r--r--grc/tests/test_examples.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/grc/tests/CMakeLists.txt b/grc/tests/CMakeLists.txt
index d316a75a94..e187e42296 100644
--- a/grc/tests/CMakeLists.txt
+++ b/grc/tests/CMakeLists.txt
@@ -16,6 +16,6 @@ if(ENABLE_TESTING)
if(PYTEST_FOUND)
set(GR_TEST_ENVIRONS "GRC_BLOCKS_PATH=\"${CMAKE_CURRENT_SOURCE_DIR}/../blocks\"")
- GR_ADD_TEST(grc_tests ${QA_PYTHON_EXECUTABLE} -B -m pytest ${CMAKE_CURRENT_SOURCE_DIR})
+ GR_ADD_TEST(grc_tests ${QA_PYTHON_EXECUTABLE} -B -m pytest ${CMAKE_CURRENT_SOURCE_DIR} -m \"not examples\")
endif()
endif(ENABLE_TESTING)
diff --git a/grc/tests/test_examples.py b/grc/tests/test_examples.py
index ac45adcd55..2b590a4a94 100644
--- a/grc/tests/test_examples.py
+++ b/grc/tests/test_examples.py
@@ -44,6 +44,7 @@ def print_proper(element):
return element.name
return f"{element.parent.name} - {element}"
+@pytest.mark.examples
@pytest.mark.parametrize("example", gather_examples())
def test_all_examples(example):
global BLOCK_PATHS