From a9b558200f60760c7ef719c707909a3033a5cf8f Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Wed, 6 Jun 2018 18:59:08 +0200 Subject: [PATCH] VTests: TestContext - correctly resolve test plugins in bundles OSX bundle/ Ubuntu snaps --- Tests/VisualTests/Context/src/TestContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/VisualTests/Context/src/TestContext.cpp b/Tests/VisualTests/Context/src/TestContext.cpp index d739ea3a4d4..0afa7437854 100644 --- a/Tests/VisualTests/Context/src/TestContext.cpp +++ b/Tests/VisualTests/Context/src/TestContext.cpp @@ -144,7 +144,7 @@ void TestContext::setup() // Get the path and list of test plugins from the config file. Ogre::ConfigFile testConfig; testConfig.load(mFSLayer->getConfigFilePath("tests.cfg")); - mPluginDirectory = testConfig.getSetting("TestFolder"); + mPluginDirectory = Ogre::FileSystemLayer::resolveBundlePath(testConfig.getSetting("TestFolder")); #if OGRE_PLATFORM != OGRE_PLATFORM_APPLE && OGRE_PLATFORM != OGRE_PLATFORM_APPLE_IOS if (mPluginDirectory.empty()) mPluginDirectory = "."; // user didn't specify plugins folder, try current one