Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/behaviour/CliContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Php\PieBehaviourTest;

use Behat\Behat\Context\Context;
use Behat\Behat\Tester\Exception\PendingException;
use Behat\Hook\AfterScenario;
use Behat\Step\Given;
use Behat\Step\Then;
Expand Down Expand Up @@ -530,6 +531,10 @@ public function iUpdatePIEToTheLatestNightlyVersion(): void
#[Then('I should see I have been updated to the latest version')]
public function iShouldSeeIHaveBeenUpdatedToTheLatestVersion(): void
{
if ($this->exitCode !== 0 && str_contains($this->output . $this->errorOutput, 'Attestation certificate identity mismatch')) {
throw new PendingException('The published nightly PIE release has not yet been rebuilt against the current default branch - skipping');
}

$this->assertCommandSuccessful();
Assert::contains($this->output, '✅ Verified the new PIE version');
Assert::contains($this->output, '✅ PIE has been upgraded to nightly');
Expand Down