Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRuben D <rubend@tutanota.com>2017-12-30 18:58:52 +0300
committerRuben D <rubend@tutanota.com>2017-12-30 18:58:52 +0300
commit28919a57a4ab98e13465e8c31158fecc6239a307 (patch)
tree3a497839f7314d06e0b0ace8054c2aa34f87f8cc /cmake
parent719bd5a707cb5e5f944f81d59f0dedc56722816d (diff)
Fix testing whether tests exist on older CMake
The string equality works on the 3.6 but not on 3.5. This works on 3.5, so I hope it also works on 3.6 (but I don't have that computer with me right now).
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CuraTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/CuraTests.cmake b/cmake/CuraTests.cmake
index 3cb5a705b3..f93313e39a 100644
--- a/cmake/CuraTests.cmake
+++ b/cmake/CuraTests.cmake
@@ -29,7 +29,7 @@ function(cura_add_test)
endif()
get_test_property(${_NAME} ENVIRONMENT test_exists) #Find out if the test exists by getting a property from it that always exists (such as ENVIRONMENT because we set that ourselves).
- if (${test_exists} EQUAL "NOTFOUND")
+ if (NOT ${test_exists})
add_test(
NAME ${_NAME}
COMMAND ${PYTHON_EXECUTABLE} -m pytest --junitxml=${CMAKE_BINARY_DIR}/junit-${_NAME}.xml ${_DIRECTORY}