From 0d0e787555efc1e6e4eb39a924bb9861bf2921d5 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 5 Nov 2014 22:18:05 +0100 Subject: test_sysdb_views: Use unique directory for cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two tests stored cache in the same directory, It can cause failures with parallel execution of tests. sh$ git grep tests_sysdb src/tests/cmocka/test_sysdb_views.c:#define TESTS_PATH "tests_sysdb" src/tests/sysdb-tests.c:#define TESTS_PATH "tests_sysdb" This patch also clean up potential leftovers after previous failed test_sysdb_views before execution of test suite. Reviewed-by: Pavel Březina --- src/tests/cmocka/test_sysdb_views.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tests/cmocka/test_sysdb_views.c') diff --git a/src/tests/cmocka/test_sysdb_views.c b/src/tests/cmocka/test_sysdb_views.c index 38525d6de..9fb2d7201 100644 --- a/src/tests/cmocka/test_sysdb_views.c +++ b/src/tests/cmocka/test_sysdb_views.c @@ -30,7 +30,7 @@ #include "tests/cmocka/common_mock.h" -#define TESTS_PATH "tests_sysdb" +#define TESTS_PATH "tests_sysdb_views" #define TEST_CONF_FILE "tests_conf.ldb" struct sysdb_test_ctx { @@ -226,6 +226,8 @@ int main(int argc, const char *argv[]) DEBUG_CLI_INIT(debug_level); tests_set_cwd(); + test_dom_suite_cleanup(TESTS_PATH, TEST_CONF_FILE, LOCAL_SYSDB_FILE); + test_dom_suite_setup(TESTS_PATH); rv = run_tests(tests); if (rv == 0 && no_cleanup == 0) { -- cgit