aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/testing/selftests/firmware/fw_filesystem.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/selftests/firmware/fw_filesystem.sh b/tools/testing/selftests/firmware/fw_filesystem.sh
index c8ccdaa78479..e35691239350 100755
--- a/tools/testing/selftests/firmware/fw_filesystem.sh
+++ b/tools/testing/selftests/firmware/fw_filesystem.sh
@@ -63,18 +63,18 @@ echo "ABCD0123" >"$FW"
63 63
64NAME=$(basename "$FW") 64NAME=$(basename "$FW")
65 65
66if printf '\000' >"$DIR"/trigger_request; then 66if printf '\000' >"$DIR"/trigger_request 2> /dev/null; then
67 echo "$0: empty filename should not succeed" >&2 67 echo "$0: empty filename should not succeed" >&2
68 exit 1 68 exit 1
69fi 69fi
70 70
71if printf '\000' >"$DIR"/trigger_async_request; then 71if printf '\000' >"$DIR"/trigger_async_request 2> /dev/null; then
72 echo "$0: empty filename should not succeed (async)" >&2 72 echo "$0: empty filename should not succeed (async)" >&2
73 exit 1 73 exit 1
74fi 74fi
75 75
76# Request a firmware that doesn't exist, it should fail. 76# Request a firmware that doesn't exist, it should fail.
77if echo -n "nope-$NAME" >"$DIR"/trigger_request; then 77if echo -n "nope-$NAME" >"$DIR"/trigger_request 2> /dev/null; then
78 echo "$0: firmware shouldn't have loaded" >&2 78 echo "$0: firmware shouldn't have loaded" >&2
79 exit 1 79 exit 1
80fi 80fi