From 0c8cac78498554fbc47f0d174b5136584536524f Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 6 Jun 2017 16:09:25 +0200 Subject: [PATCH] tests: run i18ndcheck only when bash is found it's a bash script, so it is pointless to attempt to start it when bash is not installed --- autotests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 392042e11..baef66d32 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -74,4 +74,6 @@ ecm_add_test(${sortfiltermodeltest_srcs} TEST_NAME plasma-sortfiltermodeltest LI #Add a test that i18n is not used directly in any import. # It should /always/ be i18nd find_program(SH bash) -add_test(i18ndcheck ${SH} ${CMAKE_CURRENT_SOURCE_DIR}/i18ndcheck.sh ${CMAKE_SOURCE_DIR}/src/declarativeimports) +if(SH) + add_test(i18ndcheck ${SH} ${CMAKE_CURRENT_SOURCE_DIR}/i18ndcheck.sh ${CMAKE_SOURCE_DIR}/src/declarativeimports) +endif()