test-server-utils: Only create the work directory when running with `make check'
authorTristan Van Berkom <tristanvb@openismus.com>
Mon, 2 Dec 2013 15:23:11 +0000 (00:23 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Mon, 2 Dec 2013 15:23:11 +0000 (00:23 +0900)
tests/test-server-utils/e-test-server-utils.c

index 9266849..9c83031 100644 (file)
@@ -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);