Get private data location from the environment if it's present.
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Sep 2017 20:33:27 +0000 (21:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Sep 2017 20:33:27 +0000 (21:33 +0100)
test/test.cc

index 95d84bc..15fd6a3 100644 (file)
@@ -101,6 +101,11 @@ struct TestConfig
                EncodeServerFinder::instance()->stop ();
 
                signal_manager = new TestSignalManager ();
+
+               char* env_private = getenv("DCPOMATIC_TEST_PRIVATE");
+               if (env_private) {
+                       private_data = env_private;
+               }
        }
 
        ~TestConfig ()