|
41 | 41 | if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then |
42 | 42 | # ----- CURL ----- |
43 | 43 | if [ "$TEST_SUITE" = "curl" ]; then |
44 | | - if [ -f "tests/curl-test.log" ]; then |
| 44 | + if [ -f "curl-test.log" ]; then |
45 | 45 | # 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: //') |
47 | 47 | else |
48 | | - echo "Error: tests/curl-test.log not found" |
| 48 | + echo "Error: curl-test.log not found" |
49 | 49 | exit 1 |
50 | 50 | fi |
51 | 51 |
|
@@ -184,9 +184,9 @@ if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then |
184 | 184 | fi |
185 | 185 | # ----- NET-SNMP ----- |
186 | 186 | elif [ "$TEST_SUITE" = "net-snmp" ]; then |
187 | | - if [ -f "tests/net-snmp-test.log" ]; then |
| 187 | + if [ -f "net-snmp-test.log" ]; then |
188 | 188 | # 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 |
190 | 190 | echo "PASS: net-snmp tests failed as expected with force fail enabled" |
191 | 191 | exit 0 |
192 | 192 | else |
@@ -214,9 +214,9 @@ if [ "$WOLFPROV_FORCE_FAIL" = "WOLFPROV_FORCE_FAIL=1" ]; then |
214 | 214 | fi |
215 | 215 | # ----- STUNNEL ----- |
216 | 216 | elif [ "$TEST_SUITE" = "stunnel" ]; then |
217 | | - if [ -f "$GITHUB_WORKSPACE/tests/stunnel-test.log" ]; then |
| 217 | + if [ -f "stunnel-test.log" ]; then |
218 | 218 | # 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 |
220 | 220 | echo "PASS: stunnel tests failed as expected with force fail enabled" |
221 | 221 | exit 0 |
222 | 222 | else |
|
0 commit comments