Skip to content

Commit 9ae06e2

Browse files
committed
Skip known/expected test failures in AppVeyor
1 parent b9627c9 commit 9ae06e2

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

tests/apm/monitoring-commandFailed-001.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
MongoDB\Driver\Monitoring\CommandFailedEvent
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5+
<?php skip_if_appveyor(); /* TODO: PHPC-1613 */ ?>
56
<?php skip_if_not_live(); ?>
67
<?php skip_if_not_clean(); ?>
78
--FILE--

tests/apm/monitoring-commandSucceeded-001.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
MongoDB\Driver\Monitoring\CommandSucceededEvent
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5+
<?php skip_if_appveyor(); /* TODO: PHPC-1613 */ ?>
56
<?php skip_if_not_live(); ?>
67
<?php skip_if_not_clean(); ?>
78
--FILE--

tests/manager/manager-ctor-auto_encryption-001.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
MongoDB\Driver\Manager::__construct(): auto encryption options
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5+
<?php skip_if_appveyor(); /* AppVeyor does not have mongocryptd installed */ ?>
56
<?php skip_if_not_libmongocrypt(); ?>
67
--FILE--
78
<?php

tests/utils/skipif.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,3 +431,10 @@ function skip_if_no_mongo_orchestration()
431431
exit("skip mongo-orchestration is not accessible: '" . MONGO_ORCHESTRATION_URI . "'");
432432
}
433433
}
434+
435+
function skip_if_appveyor()
436+
{
437+
if (getenv('APPVEYOR')) {
438+
exit('skip Test cannot be run on AppVeyor');
439+
}
440+
}

0 commit comments

Comments
 (0)