From 29890415487b04b965e47aee21f00a7f6a2e7268 Mon Sep 17 00:00:00 2001
From: Tomas Mraz <tomas@openssl.org>
Date: Mon, 9 Oct 2023 16:47:07 +0200
Subject: [PATCH] provider-compatibility.yml: Correct the directory where
 opensslwrap.sh is being run

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22322)
---
 .github/workflows/provider-compatibility.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/provider-compatibility.yml b/.github/workflows/provider-compatibility.yml
index ccb0fbdd7d..8fc125cbd8 100644
--- a/.github/workflows/provider-compatibility.yml
+++ b/.github/workflows/provider-compatibility.yml
@@ -236,10 +236,11 @@ jobs:
         working-directory: ${{ matrix.tree_b }}
 
       - name: get cpu info
+        if: steps.early_exit.outcome == 'success'
         run: |
           cat /proc/cpuinfo
           ./util/opensslwrap.sh version -c
-        working-directory: ${{ matrix.branch.dir }}
+        working-directory: ${{ matrix.tree_b }}
 
       - name: run cross validation tests of FIPS from A with tree from B
         if: steps.early_exit.outcome == 'success'