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}" ./test/unit.test > "$temp_dir/$log_file" 2>&1 -echo "Test script returned: $?" +ret=$? + +echo "Test script returned: $ret" MAGIC_SENTENCE=$(grep "unit_test: Success for all configured tests." $temp_dir/$log_file) @@ -21,4 +23,4 @@ else fi NUM_FAILS=$(grep -c "Failed" $temp_dir/$log_file) -exit $NUM_FAILS +exit $ret