Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Data Exporter
Commits
7fc00820
Commit
7fc00820
authored
May 02, 2020
by
Laurent Montel
Browse files
Make it more generic
parent
0aea5265
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/autotests/notes/exportnotesjobinterfacetest.cpp
View file @
7fc00820
...
...
@@ -63,8 +63,11 @@ void ExportNotesJobInterfaceTest::exportNoteConfigTest1()
{
//Don't use setTestModeEnabled otherwise we can set env
//QStandardPaths::setTestModeEnabled(true);
qputenv
(
"XDG_DATA_HOME"
,
PIMDATAEXPORTER_DIR
"/export/test1/share"
);
qputenv
(
"XDG_CONFIG_HOME"
,
PIMDATAEXPORTER_DIR
"/export/test1/config"
);
const
QByteArray
pathConfig
(
"/export/test1/"
);
qputenv
(
"XDG_DATA_HOME"
,
QByteArray
(
PIMDATAEXPORTER_DIR
)
+
pathConfig
+
"/share"
);
qputenv
(
"XDG_CONFIG_HOME"
,
QByteArray
(
PIMDATAEXPORTER_DIR
)
+
pathConfig
+
"/config"
);
//TODO fix file name.
const
QString
temporaryFile
=
QDir
::
tempPath
()
+
QStringLiteral
(
"/archive.zip"
);
...
...
@@ -85,7 +88,7 @@ void ExportNotesJobInterfaceTest::exportNoteConfigTest1()
CompareExportFile
compareExportFile
;
compareExportFile
.
setTempFilePath
(
temporaryFile
);
compareExportFile
.
setListFilePath
(
Q
StringLite
ra
l
(
PIMDATAEXPORTER_DIR
"/export/test1"
));
compareExportFile
.
setListFilePath
(
Q
Latin1String
(
QByteAr
ra
y
(
PIMDATAEXPORTER_DIR
+
pathConfig
)
));
compareExportFile
.
compareFiles
();
QVERIFY
(
QFile
(
temporaryFile
).
remove
());
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment