[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250823224611.549648-1-kavitheshnitt@gmail.com>
Date: Sun, 24 Aug 2025 04:16:11 +0530
From: "Kavithesh A.S" <kavitheshnitt@...il.com>
To: skhan@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
"Kavithesh A.S" <kavitheshnitt@...il.com>
Subject: [PATCH] selftests/exec: improve clarity of error messages
Fixed minor grammar/wording in check-exec-tests.sh messages for clarity.
Signed-off-by: Kavithesh A.S <kavitheshnitt@...il.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
Powered by blists - more mailing lists