diff options
author | Tezkerek <andrei.ancuta@gmail.com> | 2020-04-09 15:02:13 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2020-04-09 16:46:44 +0300 |
commit | 6128e5d58294f26411160f44da91087ebe7f4b07 (patch) | |
tree | 7d03fe3529cffed57f278a8de6d5d875345c13a7 /tests | |
parent | ef668f552ed20b801f62b9cd2b6cf395c01bab0c (diff) |
[CLI] On Unix, copy to clipboard using wl-clipboard if xclip is not available.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestCli.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/TestCli.cpp b/tests/TestCli.cpp index 31e090bee..4ebc2f4e6 100644 --- a/tests/TestCli.cpp +++ b/tests/TestCli.cpp @@ -473,6 +473,10 @@ void TestCli::testClip() m_stdoutFile->reset(); QString errorOutput(m_stderrFile->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"); |