[evolution-data-server] test-server-utils: Only create the work directory when running with `make check'



commit a91239acc02e1d14b3af32184117e805ad0fb45f
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Tue Dec 3 00:23:11 2013 +0900

    test-server-utils: Only create the work directory when running with `make check'

 tests/test-server-utils/e-test-server-utils.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-server-utils/e-test-server-utils.c b/tests/test-server-utils/e-test-server-utils.c
index 9266849..9c83031 100644
--- a/tests/test-server-utils/e-test-server-utils.c
+++ b/tests/test-server-utils/e-test-server-utils.c
@@ -520,7 +520,8 @@ e_test_server_utils_setup (ETestServerFixture *fixture,
        FixturePair         pair    = { fixture, closure };
 
        /* Create work directory */
-       g_assert (g_mkdir_with_parents (EDS_TEST_WORK_DIR, 0755) == 0);
+       if (!test_installed_services())
+               g_assert (g_mkdir_with_parents (EDS_TEST_WORK_DIR, 0755) == 0);
 
        /* Init refs */
        g_weak_ref_init (&fixture->registry_ref, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]