[shell/tests] Stop kamd after executing a test

On build.kde.org the tests are freezing because kamd gets started and
doesn't quit. So let's stop it manually to ensure it properly terminates.

Reviewed-By: Marco Martin
wilder-5.14
Martin Gräßlin 10 years ago
parent e6e9085c11
commit 0d92aebbb3
  1. 6
      shell/tests/CMakeLists.txt
  2. 3
      shell/tests/test.sh.in

@ -7,9 +7,13 @@ function(plasmoidtest plasmoidName)
${CMAKE_CURRENT_BINARY_DIR}/testLayout-${plasmoidName}.js
@ONLY
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/test.sh.in
${CMAKE_CURRENT_BINARY_DIR}/test-${plasmoidName}.sh
@ONLY
)
add_test(NAME ${plasmoidName}-test COMMAND
plasmashell --test ${CMAKE_CURRENT_BINARY_DIR}/testLayout-plasmoidName.js
sh ${CMAKE_CURRENT_BINARY_DIR}/test-${plasmoidName}.sh
)
endfunction()

@ -0,0 +1,3 @@
#!/bin/sh
plasmashell --test "@CMAKE_CURRENT_BINARY_DIR@/testLayout-@plasmoidName@.js"
kactivitymanagerd stop
Loading…
Cancel
Save