diff options
author | Farouk Bouabid <farouk.bouabid@theobroma-systems.com> | 2024-01-22 11:34:50 +0100 |
---|---|---|
committer | Farouk Bouabid <farouk.bouabid@theobroma-systems.com> | 2024-01-23 09:41:50 +0100 |
commit | 040de5bccf213abbf6379f9a3f0d5aec2fb97553 (patch) | |
tree | 39188018de21d455a738146c283b679db53bf5a4 | |
parent | f29b58b74e03ac042ef818a985ff2cc8f08d8460 (diff) |
testing: serial: test-serial: fix test size
The test size can be randomized if the fuzz option is used and min/max
size are passed as cli arguments. The value holding the final test size
is a local variable ("size").
Pass it as argument to the transfer function instead of the cli argument.
Signed-off-by: Farouk Bouabid <farouk.bouabid@theobroma-systems.com>
-rwxr-xr-x | testing/serial/test-serial.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/serial/test-serial.py b/testing/serial/test-serial.py index 5f0f66b..87a56ae 100755 --- a/testing/serial/test-serial.py +++ b/testing/serial/test-serial.py @@ -166,7 +166,7 @@ if __name__ == "__main__": end="", ) sys.stdout.flush() - ret = transfer(rx, tx, args.size) + ret = transfer(rx, tx, size) print("success" if ret else "fail") rx_errors += 0 if ret else 1 if args.exit_on_error and not ret: |