From 30ca305b4d47476ef508fc461fd469df5655f5b0 Mon Sep 17 00:00:00 2001 From: William Hua Date: Thu, 22 Aug 2013 16:45:53 +0800 Subject: Kill running gvfs instance after tests finish. --- tests/indicator-keyboard-test.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3