diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2018-07-16 10:49:52 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2018-11-06 17:17:36 +0100 |
commit | c663f4ae849fa7f2a99e380d898e33c18b2c6e8b (patch) | |
tree | f09c31287eff62e07197919bf9c5c0e21f0bb9f8 | |
parent | 0afaf5262bd3fc39fe8d9ae971c1f042bde8bed0 (diff) | |
download | mutter-c663f4ae849fa7f2a99e380d898e33c18b2c6e8b.tar.gz |
tests: Add env var to override plugin used for tests
This is so that the test suite can point at the non-installed version.
-rw-r--r-- | src/tests/test-utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/test-utils.c b/src/tests/test-utils.c index ebc076a52..3df98f305 100644 --- a/src/tests/test-utils.c +++ b/src/tests/test-utils.c @@ -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"; } |