Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
a4771836
Commit
a4771836
authored
Sep 10, 2021
by
Friedrich W. H. Kossebau
Browse files
messagecomposer autotests: set LANG=C in test env to also target gpg-agent
GIT_SILENT
parent
959be95b
Pipeline
#79873
passed with stage
in 25 minutes and 52 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
messagecomposer/autotests/CMakeLists.txt
View file @
a4771836
...
@@ -50,7 +50,10 @@ macro( add_messagecomposer_cryptotest _source )
...
@@ -50,7 +50,10 @@ macro( add_messagecomposer_cryptotest _source )
KF5::Contacts
KF5::Contacts
)
)
add_gpg_crypto_test
(
${
_name
}
messagecomposer-
${
_name
}
)
add_gpg_crypto_test
(
${
_name
}
messagecomposer-
${
_name
}
)
set_tests_properties
(
messagecomposer-
${
_name
}
PROPERTIES RUN_SERIAL TRUE
)
# can't be parallelized due to gpg-agent
set_tests_properties
(
messagecomposer-
${
_name
}
PROPERTIES
RUN_SERIAL TRUE
# can't be parallelized due to gpg-agent
ENVIRONMENT
"LANG=C"
)
endmacro
()
endmacro
()
...
...
messagecomposer/autotests/setupenv.cpp
View file @
a4771836
...
@@ -25,7 +25,6 @@ using namespace MessageComposer;
...
@@ -25,7 +25,6 @@ using namespace MessageComposer;
void
Test
::
setupEnv
()
void
Test
::
setupEnv
()
{
{
qputenv
(
"LC_ALL"
,
"C"
);
qputenv
(
"KDEHOME"
,
QFile
::
encodeName
(
QDir
::
homePath
()
+
QLatin1String
(
"/.qttest"
)).
constData
());
qputenv
(
"KDEHOME"
,
QFile
::
encodeName
(
QDir
::
homePath
()
+
QLatin1String
(
"/.qttest"
)).
constData
());
QStandardPaths
::
setTestModeEnabled
(
true
);
QStandardPaths
::
setTestModeEnabled
(
true
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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