Skip to content

Commit 98c771a

Browse files
committed
update test logic paths
1 parent f3efa6c commit 98c771a

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/scripts/check-workflow-result.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ fi
4141
if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then
4242
# ----- CURL -----
4343
if [ "$TEST_SUITE" = "curl" ]; then
44-
if [ -f "tests/curl-test.log" ]; then
44+
if [ -f "curl-test.log" ]; then
4545
# Extract and clean the failed test list from the log
46-
ACTUAL_FAILS=$(grep -a '^TESTFAIL: These test cases failed:' tests/curl-test.log | sed 's/.*failed: //')
46+
ACTUAL_FAILS=$(grep -a '^TESTFAIL: These test cases failed:' curl-test.log | sed 's/.*failed: //')
4747
else
48-
echo "Error: tests/curl-test.log not found"
48+
echo "Error: curl-test.log not found"
4949
exit 1
5050
fi
5151

@@ -184,9 +184,9 @@ if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then
184184
fi
185185
# ----- NET-SNMP -----
186186
elif [ "$TEST_SUITE" = "net-snmp" ]; then
187-
if [ -f "tests/net-snmp-test.log" ]; then
187+
if [ -f "net-snmp-test.log" ]; then
188188
# Check if we have exactly 29 failed tests and a FAIL result
189-
if grep -q "We failed these 29 tests:" tests/net-snmp-test.log && grep -q "Result: FAIL" tests/net-snmp-test.log; then
189+
if grep -q "We failed these 29 tests:" net-snmp-test.log && grep -q "Result: FAIL" net-snmp-test.log; then
190190
echo "PASS: net-snmp tests failed as expected with force fail enabled"
191191
exit 0
192192
else
@@ -214,9 +214,9 @@ if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then
214214
fi
215215
# ----- STUNNEL -----
216216
elif [ "$TEST_SUITE" = "stunnel" ]; then
217-
if [ -f "$GITHUB_WORKSPACE/tests/stunnel-test.log" ]; then
217+
if [ -f "stunnel-test.log" ]; then
218218
# Check for expected error patterns
219-
if grep -q "failed: 41" "$GITHUB_WORKSPACE/tests/stunnel-test.log"; then
219+
if grep -q "failed: 41" "stunnel-test.log"; then
220220
echo "PASS: stunnel tests failed as expected with force fail enabled"
221221
exit 0
222222
else

.github/workflows/stunnel.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ jobs:
9595
./src/stunnel -version
9696
9797
# Run tests and capture output
98-
mkdir -p $GITHUB_WORKSPACE/tests
99-
make check 2>&1 | tee $GITHUB_WORKSPACE/tests/stunnel-test.log
98+
make check 2>&1 | tee stunnel-test.log
10099
TEST_RESULT=$?
101100
$GITHUB_WORKSPACE/.github/scripts/check-workflow-result.sh $TEST_RESULT ${{ matrix.force_fail }} stunnel

0 commit comments

Comments
 (0)