mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Remove WITH_GUI_TESTS exclusion for CLI tests (#6946)
Apparently this exclusion was only relevant for Linux systems not running X, which was already handled dynamically in the testClip function. The CLI tests will now run by default will all the other core tests.
This commit is contained in:
@@ -437,6 +437,10 @@ void TestCli::testAnalyze()
|
||||
|
||||
void TestCli::testClip()
|
||||
{
|
||||
if (QProcessEnvironment::systemEnvironment().contains("WAYLAND_DISPLAY")) {
|
||||
QSKIP("Clip test skipped due to QClipboard and Wayland issues on Linux");
|
||||
}
|
||||
|
||||
QClipboard* clipboard = QGuiApplication::clipboard();
|
||||
clipboard->clear();
|
||||
|
||||
@@ -449,10 +453,6 @@ void TestCli::testClip()
|
||||
execCmd(clipCmd, {"clip", m_dbFile->fileName(), "/Sample Entry", "0"});
|
||||
QString errorOutput(m_stderr->readAll());
|
||||
|
||||
if (QProcessEnvironment::systemEnvironment().contains("WAYLAND_DISPLAY")) {
|
||||
QSKIP("Clip test skipped due to QClipboard and Wayland issues");
|
||||
}
|
||||
|
||||
if (errorOutput.contains("Unable to start program")
|
||||
|| errorOutput.contains("No program defined for clipboard manipulation")) {
|
||||
QSKIP("Clip test skipped due to missing clipboard tool");
|
||||
|
||||
Reference in New Issue
Block a user