mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
tests: ensure run-tests handles multiple lines of churn
72b40f92c680 added the ability to remember lines (including their flags, like glob) and tolerate them even if the output order varies. This test ensures that the code will continue to work in the future.
This commit is contained in:
parent
34ff160b27
commit
0873ced1ee
@ -67,6 +67,30 @@ a succesful test
|
||||
failing test
|
||||
==================
|
||||
|
||||
test churn with globs
|
||||
$ cat > test-failure.t <<EOF
|
||||
> $ echo "bar-baz"; echo "bar-bad"
|
||||
> bar*bad (glob)
|
||||
> bar*baz (glob)
|
||||
> EOF
|
||||
$ rt test-failure.t
|
||||
|
||||
--- $TESTTMP/test-failure.t
|
||||
+++ $TESTTMP/test-failure.t.err
|
||||
@@ -1,3 +1,3 @@
|
||||
$ echo "bar-baz"; echo "bar-bad"
|
||||
+ bar*baz (glob)
|
||||
bar*bad (glob)
|
||||
- bar*baz (glob)
|
||||
|
||||
ERROR: test-failure.t output changed
|
||||
!
|
||||
Failed test-failure.t: output changed
|
||||
# Ran 1 tests, 0 skipped, 0 warned, 1 failed.
|
||||
python hash seed: * (glob)
|
||||
[1]
|
||||
|
||||
basic failing test
|
||||
$ cat > test-failure.t << EOF
|
||||
> $ echo babar
|
||||
> rataxes
|
||||
|
Loading…
Reference in New Issue
Block a user