[PATCH] selftests/exec: improve clarity of error messages

Kavithesh A.S posted 1 patch 1 month, 1 week ago
.../testing/selftests/exec/check-exec-tests.sh | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
[PATCH] selftests/exec: improve clarity of error messages
Posted by Kavithesh A.S 1 month, 1 week ago
Fixed minor grammar/wording in check-exec-tests.sh messages for clarity.

Signed-off-by: Kavithesh A.S <kavitheshnitt@gmail.com>
---
 .../testing/selftests/exec/check-exec-tests.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/tools/testing/selftests/exec/check-exec-tests.sh b/tools/testing/selftests/exec/ch
index 87102906a..21908f107 100755
--- a/tools/testing/selftests/exec/check-exec-tests.sh
+++ b/tools/testing/selftests/exec/check-exec-tests.sh
@@ -27,11 +27,11 @@ exec_direct() {
 	out="$(PATH="." "$@" "${script}")" || ret=$?
 
 	if [[ ${ret} -ne ${expect} ]]; then
-		echo "ERROR: Wrong expectation for direct file execution: ${ret}"
+		echo "ERROR: Incorrect expectation for direct file execution: ${ret}"
 		return 1
 	fi
 	if [[ ${ret} -eq 0 && "${out}" != "${EXPECTED_OUTPUT}" ]]; then
-		echo "ERROR: Wrong output for direct file execution: ${out}"
+		echo "ERROR: Incorrect output for direct file execution: ${out}"
 		return 1
 	fi
 }
@@ -47,11 +47,11 @@ exec_indirect() {
 	out="$("$@" ./inc "${script}")" || ret=$?
 
 	if [[ ${ret} -ne ${expect} ]]; then
-		echo "ERROR: Wrong expectation for indirect file execution: ${ret}"
+		echo "ERROR: Incorrect expectation for indirect file execution: ${ret}"
 		return 1
 	fi
 	if [[ ${ret} -eq 0 && "${out}" != "${EXPECTED_OUTPUT}" ]]; then
-		echo "ERROR: Wrong output for indirect file execution: ${out}"
+		echo "ERROR: Incorrect output for indirect file execution: ${out}"
 		return 1
 	fi
 }
@@ -67,11 +67,11 @@ exec_stdin_reg() {
 	out="$("$@" ./inc -i < "${script}")" || ret=$?
 
 	if [[ ${ret} -ne ${expect} ]]; then
-		echo "ERROR: Wrong expectation for stdin regular file execution: ${ret}"
+		echo "ERROR: Incorrect expectation for stdin regular file execution: ${ret}"
 		return 1
 	fi
 	if [[ ${ret} -eq 0 && "${out}" != "${EXPECTED_OUTPUT}" ]]; then
-		echo "ERROR: Wrong output for stdin regular file execution: ${out}"
+		echo "ERROR: Incorrect output for stdin regular file execution: ${out}"
 		return 1
 	fi
 }
@@ -86,7 +86,7 @@ exec_stdin_pipe() {
 	out="$(cat script-exec.inc | "$@" ./inc -i)" || ret=$?
 
 	if [[ ${ret} -ne ${expect} ]]; then
-		echo "ERROR: Wrong expectation for stdin pipe execution: ${ret}"
+		echo "ERROR: Incorrect expectation for stdin pipe execution: ${ret}"
 		return 1
 	fi
 }
@@ -101,11 +101,11 @@ exec_argument() {
 	out="$("$@" ./inc -c "$(< script-exec.inc)")" || ret=$?
 
 	if [[ ${ret} -ne ${expect} ]]; then
-		echo "ERROR: Wrong expectation for arbitrary argument execution: ${ret}"
+		echo "ERROR: Incorrect expectation for arbitrary argument execution: ${ret}"
 		return 1
 	fi
 	if [[ ${ret} -eq 0 && "${out}" != "${EXPECTED_OUTPUT}" ]]; then
-		echo "ERROR: Wrong output for arbitrary argument execution: ${out}"
+		echo "ERROR: Incorrect output for arbitrary argument execution: ${out}"
 		return 1
 	fi
 }
-- 
2.43.0