[evolution-data-server] Better handling of the TEST_INSTALLED_SERVICES variable
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Better handling of the TEST_INSTALLED_SERVICES variable
- Date: Tue, 3 Dec 2013 10:13:23 +0000 (UTC)
commit 3ef51bf80b89cbca8d275a8acd02683d0c71fa1f
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Tue Dec 3 18:48:17 2013 +0900
Better handling of the TEST_INSTALLED_SERVICES variable
Don't set the encapsulated environment variables when running installed.
tests/test-server-utils/e-test-server-utils.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-server-utils/e-test-server-utils.c b/tests/test-server-utils/e-test-server-utils.c
index 9c83031..4564521 100644
--- a/tests/test-server-utils/e-test-server-utils.c
+++ b/tests/test-server-utils/e-test-server-utils.c
@@ -687,10 +687,13 @@ e_test_server_utils_run_full (ETestServerFlags flags)
gint tests_ret;
/* Cleanup work directory */
- if ((flags & E_TEST_SERVER_KEEP_WORK_DIRECTORY) == 0)
- delete_work_directory ();
+ if (!test_installed_services()) {
- setup_environment ();
+ if ((flags & E_TEST_SERVER_KEEP_WORK_DIRECTORY) == 0)
+ delete_work_directory ();
+
+ setup_environment ();
+ }
#if GLOBAL_DBUS_DAEMON
if (!test_installed_services ()) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]