-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
script: Add -scripttest.update to update txtar files
To make it easy to create and update expected test outputs, add the -scripttest.update flag which updates the txtar files with the 'cmp' inputs. To allow waiting for the inputs to reach expected state, add the '!*' prefix for retrying until failure, e.g. to allow writing: # Wait until no 'Pending' columns exist db show -columns=Status -o out.table test-table !* grep Pending out.table * cmp expected.table out.table Now running "go test . -scripttest.update" will update the 'expected.table', but only after it passes the grep. Signed-off-by: Jussi Maki <[email protected]>
- Loading branch information
Showing
5 changed files
with
66 additions
and
19 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
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
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
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
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