Skip to content

Commit b22e440

Browse files
committed
Update logic and add patch
1 parent 779fb8a commit b22e440

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/asan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ name: Asan Test
44
on:
55
push:
66
branches: [ "*" ]
7-
pull_request:
8-
branches: [ "*" ]
7+
# pull_request:
8+
# branches: [ "*" ]
99

1010
concurrency:
1111
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/libhashkit2.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,14 @@ jobs:
8787
# Set up the environment for wolfProvider
8888
source $GITHUB_WORKSPACE/scripts/env-setup
8989
export ${{ matrix.force_fail }}
90-
9190
# Run tests
9291
make test 2>&1 | tee libhashkit2-test.log
93-
TEST_RESULT=${PIPESTATUS[0]}
92+
if grep -q "(Failed)" libhashkit2-test.log; then
93+
TEST_RESULT=1
94+
else
95+
TEST_RESULT=0
96+
fi
9497
echo "TEST_RESULT = $TEST_RESULT"
95-
96-
#$GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT ${{ matrix.force_fail }} libp11
98+
99+
$GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT ${{ matrix.force_fail }} libhashkit2
100+

.github/workflows/sssd.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
cd sssd
8282
git checkout ${{ matrix.sssd_ref }}
8383
84+
# Apply patch for testing
85+
patch -p1 < $GITHUB_WORKSPACE/osp/wolfProvider/sssd/sssd-${{ matrix.sssd_ref }}-wolfprov.patch
86+
8487
# Configure and build SSSD with wolfProvider
8588
autoreconf -ivf
8689
./configure --without-samba --disable-cifs-idmap-plugin \
@@ -103,9 +106,5 @@ jobs:
103106
# Run tests and save result
104107
make check 2>&1 | tee sssd-test.log
105108
TEST_RESULT=${PIPESTATUS[0]}
106-
107-
# TODO: investigate failing test cases
108-
# src/tests/whitespace_test (in 2.9.1) and sss_certmap_test (on master)
109-
# Capture the test result using PIPESTATUS (Bash only)
110109
111110
$GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT ${{ matrix.force_fail }} sssd

0 commit comments

Comments
 (0)