Skip to content

Commit

Permalink
Skip more unsafe tests on GitHhub Action's macOS 14 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Apr 23, 2024
1 parent 4d993ab commit f8faae2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/cli/testdsocommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,10 @@ void TestDsoCommand::outputSamples_data()

void TestDsoCommand::outputSamples()
{
if (gitHubActionsRunnerOsVersion() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 14)) {
QSKIP("BLE controller operations hang on GitHub Actions's macOS 14 runners");
}

QFETCH(DsoService::Metadata, metadata);
QFETCH(QList<DsoService::Samples>, samplesList);
QFETCH(AbstractCommand::OutputFormat, format);
Expand Down
4 changes: 4 additions & 0 deletions test/unit/cli/teststatuscommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ void TestStatusCommand::outputDeviceStatus_data()

void TestStatusCommand::outputDeviceStatus()
{
if (gitHubActionsRunnerOsVersion() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 14)) {
QSKIP("BLE controller operations hang on GitHub Actions's macOS 14 runners");
}

QFETCH(StatusService::DeviceCharacteristics, chrs);
QFETCH(AbstractCommand::OutputFormat, format);
LOADTESTDATA(expected);
Expand Down
4 changes: 4 additions & 0 deletions test/unit/lib/testabstractpokitservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ void TestAbstractPokitService::createServiceObject()

void TestAbstractPokitService::getCharacteristic()
{
if (gitHubActionsRunnerOsVersion() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 14)) {
QSKIP("BLE controller operations hang on GitHub Actions's macOS 14 runners");
}

{ // Verify an invalid characteristic is returned safely, when no controller is set.
MockPokitService service(nullptr);
const QLowEnergyCharacteristic characteristic = service.d_ptr->getCharacteristic(QUuid::createUuid());
Expand Down
4 changes: 4 additions & 0 deletions test/unit/lib/testpokitdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ void TestPokitDevice::setController()

void TestPokitDevice::connected()
{
if (gitHubActionsRunnerOsVersion() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 14)) {
QSKIP("BLE controller operations hang on GitHub Actions's macOS 14 runners");
}

// Verify safe error handling (can't do much else without a Bluetooth device).
PokitDevice device(nullptr);
QTest::ignoreMessage(QtCriticalMsg,
Expand Down
4 changes: 4 additions & 0 deletions test/unit/lib/testpokitproducts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ void TestPokitProducts::pokitProduct_Controller_data()

void TestPokitProducts::pokitProduct_Controller()
{
if (gitHubActionsRunnerOsVersion() >= QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 14)) {
QSKIP("BLE controller operations hang on GitHub Actions's macOS 14 runners");
}

QFETCH(QBluetoothUuid, uuid);
QFETCH(PokitProduct, expected);

Expand Down

0 comments on commit f8faae2

Please sign in to comment.