Skip to content

Commit

Permalink
add tests for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lzace817 committed Jun 4, 2024
1 parent 73dad99 commit 399ccba
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
./rere.py replay test.list
./rere.py replay skip-fail.list
./rere.py replay meta.list
52 changes: 52 additions & 0 deletions meta.list.bi
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
:i count 3
:b shell 26
./rere.py replay test.list
:i returncode 0
:b stdout 124
REPLAYING: echo 'Hello, World'
REPLAYING: echo 'Foo, bar'
REPLAYING: echo 'Ur, mom'
REPORT: 0 Skipped:
REPORT: 0 failed:
OK

:b stderr 0

:b shell 31
./rere.py replay skip-fail.list
:i returncode 1
:b stdout 448
REPLAYING: echo 'Hello, World'
UNEXPECTED: stdout
--- expected
+++ actual
@@ -1 +1 @@
-Hello, world
+Hello, World
REPLAYING: echo 'Foo, bar, baz'
NOT FOUND: shell command
COMMAND: echo 'Foo, bar, baz'
NOTE: You may want to do `./rere.py record skip-fail.list` to update skip-fail.list.bi
NOTE: Skiping this shell
REPLAYING: echo 'Ur, mom'
REPORT: 1 Skipped:
SKIPPED: echo 'Foo, bar, baz'
REPORT: 1 failed:
FAILED: echo 'Hello, World'

:b stderr 0

:b shell 26
./rere.py replay meta.list
:i returncode 0
:b stdout 160
REPLAYING: ./rere.py replay test.list
REPLAYING: ./rere.py replay skip-fail.list
REPLAYING: ./rere.py replay meta.list
REPORT: 0 Skipped:
REPORT: 0 failed:
OK


:b stderr 0

0 comments on commit 399ccba

Please sign in to comment.