autotests: Skip ScreencastingTest::testOutputCasting when running in ci
The test is flaky. We work around it by passing --repeat until-pass, but lately even it doesn't help us with this issue. So skip the test when running it inside KDE CI for a few months until it gets a newer kernel.
This commit is contained in:
parent
1674b2b75b
commit
23f533aa52
1 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "composite.h"
|
#include "composite.h"
|
||||||
#include "core/output.h"
|
#include "core/output.h"
|
||||||
#include "generic_scene_opengl_test.h"
|
#include "generic_scene_opengl_test.h"
|
||||||
|
#include "libkwineffects/kwinglplatform.h"
|
||||||
#include "pointer_input.h"
|
#include "pointer_input.h"
|
||||||
#include "scene/workspacescene.h"
|
#include "scene/workspacescene.h"
|
||||||
#include "wayland_server.h"
|
#include "wayland_server.h"
|
||||||
|
@ -90,6 +91,12 @@ private:
|
||||||
|
|
||||||
void ScreencastingTest::init()
|
void ScreencastingTest::init()
|
||||||
{
|
{
|
||||||
|
// TODO: Remove this when CI is updated to ubuntu 22.04 or something with a newer kernel.
|
||||||
|
const Version kernelVersion = GLPlatform::instance()->kernelVersion();
|
||||||
|
if (kernelVersion.major() == 5 && kernelVersion.minor() <= 4) {
|
||||||
|
QSKIP("drmPrimeFDToHandle() randomly fails");
|
||||||
|
return;
|
||||||
|
}
|
||||||
QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::ScreencastingV1));
|
QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::ScreencastingV1));
|
||||||
QVERIFY(KWin::Test::screencasting());
|
QVERIFY(KWin::Test::screencasting());
|
||||||
Cursors::self()->hideCursor();
|
Cursors::self()->hideCursor();
|
||||||
|
|
Loading…
Reference in a new issue