Kaydet (Commit) dade97c9 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: use the new ui test logger also for the UNO commands

Change-Id: I220b817df82cd0f26f6d8b72a28b7becfd954461
Reviewed-on: https://gerrit.libreoffice.org/35448Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 26ee34d1
......@@ -53,7 +53,7 @@
#include <osl/mutex.hxx>
#include <uno/current_context.hxx>
#include <vcl/svapp.hxx>
#include <rtl/bootstrap.hxx>
#include <vcl/uitest/logger.hxx>
#include <sfx2/app.hxx>
#include <sfx2/unoctitm.hxx>
......@@ -609,16 +609,7 @@ void collectUIInformation(const util::URL& rURL, const uno::Sequence<beans::Prop
if (!pFile)
return;
OUString aCommand = rURL.Protocol + rURL.Path;
OUString aDirPath("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/uitest/");
rtl::Bootstrap::expandMacros(aDirPath);
osl::Directory::createPath(aDirPath);
OUString aFilePath = aDirPath + OUString::fromUtf8(pFile);
SvFileStream aFile(aFilePath, StreamMode::STD_READWRITE);
aFile.Seek(aFile.Tell() + aFile.remainingSize());
aFile.WriteLine(OUStringToOString(aCommand, RTL_TEXTENCODING_UTF8));
UITestLogger::getInstance().logCommand(rURL.Protocol + rURL.Path);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment