aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-08-22 16:45:53 +0800
committerWilliam Hua <william.hua@canonical.com>2013-08-22 16:45:53 +0800
commit30ca305b4d47476ef508fc461fd469df5655f5b0 (patch)
tree8152972fbc42d8945ce324a72eebb8b419ee403e /tests
parente7ef3f36cbce553d8a202c2abca6472797194a6f (diff)
downloadayatana-indicator-keyboard-30ca305b4d47476ef508fc461fd469df5655f5b0.tar.gz
ayatana-indicator-keyboard-30ca305b4d47476ef508fc461fd469df5655f5b0.tar.bz2
ayatana-indicator-keyboard-30ca305b4d47476ef508fc461fd469df5655f5b0.zip
Kill running gvfs instance after tests finish.
Diffstat (limited to 'tests')
-rw-r--r--tests/indicator-keyboard-test.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/indicator-keyboard-test.in b/tests/indicator-keyboard-test.in
index 1a78a2fc..621133dd 100644
--- a/tests/indicator-keyboard-test.in
+++ b/tests/indicator-keyboard-test.in
@@ -5,4 +5,9 @@ export DCONF_PROFILE="@abs_top_builddir@/tests/profiles/indicator-keyboard-test"
export GSETTINGS_SCHEMA_DIR="@abs_top_builddir@/data"
export XDG_RUNTIME_DIR="@abs_top_builddir@/tests"
-xvfb-run -a ./indicator-keyboard-tests
+if xvfb-run -a ./indicator-keyboard-tests
+then
+ pkill -f tests/gvfs || exit 0
+else
+ pkill -f tests/gvfs && exit 1
+fi