aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/integration/CMakeLists.txt19
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/integration/CMakeLists.txt b/tests/integration/CMakeLists.txt
index e021d87..0f4a53c 100644
--- a/tests/integration/CMakeLists.txt
+++ b/tests/integration/CMakeLists.txt
@@ -74,10 +74,25 @@ target_link_libraries(
gmenuharness-shared
)
-add_test(
+####
+## When building under jenkins, pulseuadio fails to start as there is no
+## /run/user tree, HOME directory is missing, and similar issues. So here
+## we check that we are the jenkins user, and avoid the integration tests,
+## until such time in future when we can run these tests in some different
+## manner to avoid needing to run pulseaudio in this way.
+####
+execute_process(
+ COMMAND whoami
+ OUTPUT_VARIABLE TESTS_USER
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+)
+
+if(NOT "${TESTS_USER}" STREQUAL "jenkins")
+ add_test(
integration-tests
integration-tests
-)
+ )
+endif()
set(
SET-VOLUME-SRC