This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: test_flows.sh: use check and check_error
Some tests were already using check() and check_error, but not all. Also, some tests were using them, but did not return check_error, which made the test always pass if the last command succeeded (even if any previous ones failed). With the new python script to send commands, it's now also possible to check the output of the call (the script returns an error code if the device replied with an error for example). This commit adds check() calls where possible, and set and return check_error accordingly. As a consequence, failing tests should no longer be marked as "OK", even if the last command of the test succeeded. Signed-off-by: Raphaël Mélotte <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters