aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <rodney.dawes@canonical.com>2017-03-28 15:04:05 +0000
committerBileto Bot <ci-train-bot@canonical.com>2017-03-28 15:04:05 +0000
commit27015e40460d8342b1b96d2b2ad00e40f7661043 (patch)
treec637d5bdf6c85bbcd8ccc00eadbfc681fd47ef6f
parent87cc0dc8da19468ee34050b015958c67c73321d9 (diff)
parent6bfcb0757a60cd9fb75d689c632c1279bbf32d75 (diff)
downloadayatana-indicator-sound-27015e40460d8342b1b96d2b2ad00e40f7661043.tar.gz
ayatana-indicator-sound-27015e40460d8342b1b96d2b2ad00e40f7661043.tar.bz2
ayatana-indicator-sound-27015e40460d8342b1b96d2b2ad00e40f7661043.zip
Disable integration tests when running under jenkins environment for now.
Approved by: Charles Kerr, unity-api-1-bot
-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