diff options
| -rwxr-xr-x | tools/testing/selftests/firmware/fw_filesystem.sh | 6 |
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 | ||
| 64 | NAME=$(basename "$FW") | 64 | NAME=$(basename "$FW") |
| 65 | 65 | ||
| 66 | if printf '\000' >"$DIR"/trigger_request; then | 66 | if 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 |
| 69 | fi | 69 | fi |
| 70 | 70 | ||
| 71 | if printf '\000' >"$DIR"/trigger_async_request; then | 71 | if 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 |
| 74 | fi | 74 | fi |
| 75 | 75 | ||
| 76 | # Request a firmware that doesn't exist, it should fail. | 76 | # Request a firmware that doesn't exist, it should fail. |
| 77 | if echo -n "nope-$NAME" >"$DIR"/trigger_request; then | 77 | if 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 |
| 80 | fi | 80 | fi |
