tests: Add env var to override plugin used for tests

This is so that the test suite can point at the non-installed version.
This commit is contained in:
Jonas Ådahl 2018-07-16 10:49:52 +02:00
parent 0afaf5262b
commit c663f4ae84

View File

@ -447,5 +447,11 @@ test_client_destroy (TestClient *client)
const char *
test_get_plugin_name (void)
{
return "libdefault";
const char *name;
name = g_getenv ("MUTTER_TEST_PLUGIN_PATH");
if (name)
return name;
else
return "libdefault";
}