mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
test-run-tests.t: test running a failing test
This commit is contained in:
parent
e27ac051fd
commit
61ff88f87e
@ -18,3 +18,27 @@ a succesful test
|
||||
$ $TESTDIR/run-tests.py --with-hg=`which hg`
|
||||
.
|
||||
# Ran 1 tests, 0 skipped, 0 warned, 0 failed.
|
||||
|
||||
failing test
|
||||
==================
|
||||
|
||||
$ cat > test-failure.t << EOF
|
||||
> $ echo babar
|
||||
> rataxes
|
||||
> EOF
|
||||
|
||||
$ $TESTDIR/run-tests.py --with-hg=`which hg`
|
||||
|
||||
--- $TESTTMP/test-failure.t
|
||||
+++ $TESTTMP/test-failure.t.err
|
||||
@@ -1,2 +1,2 @@
|
||||
$ echo babar
|
||||
- rataxes
|
||||
+ babar
|
||||
|
||||
ERROR: test-failure.t output changed
|
||||
!.
|
||||
Failed test-failure.t: output changed
|
||||
# Ran 2 tests, 0 skipped, 0 warned, 1 failed.
|
||||
python hash seed: * (glob)
|
||||
[1]
|
||||
|
Loading…
Reference in New Issue
Block a user