diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/wolfssl/files/run-ptest')
-rw-r--r-- | meta-networking/recipes-connectivity/wolfssl/files/run-ptest | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-networking/recipes-connectivity/wolfssl/files/run-ptest b/meta-networking/recipes-connectivity/wolfssl/files/run-ptest index ff66f4ef6c..fd260d441a 100644 --- a/meta-networking/recipes-connectivity/wolfssl/files/run-ptest +++ b/meta-networking/recipes-connectivity/wolfssl/files/run-ptest | |||
@@ -8,7 +8,9 @@ echo "Wolfssl ptest logs are stored in ${temp_dir}/${log_file}" | |||
8 | 8 | ||
9 | ./test/unit.test > "$temp_dir/$log_file" 2>&1 | 9 | ./test/unit.test > "$temp_dir/$log_file" 2>&1 |
10 | 10 | ||
11 | echo "Test script returned: $?" | 11 | ret=$? |
12 | |||
13 | echo "Test script returned: $ret" | ||
12 | 14 | ||
13 | MAGIC_SENTENCE=$(grep "unit_test: Success for all configured tests." $temp_dir/$log_file) | 15 | MAGIC_SENTENCE=$(grep "unit_test: Success for all configured tests." $temp_dir/$log_file) |
14 | 16 | ||
@@ -21,4 +23,4 @@ else | |||
21 | fi | 23 | fi |
22 | NUM_FAILS=$(grep -c "Failed" $temp_dir/$log_file) | 24 | NUM_FAILS=$(grep -c "Failed" $temp_dir/$log_file) |
23 | 25 | ||
24 | exit $NUM_FAILS | 26 | exit $ret |