Patchwork [2,of,3] test-run-tests.t: add tests for skips

login
register
mail settings
Submitter Augie Fackler
Date Aug. 5, 2014, 3:22 p.m.
Message ID <90e315e934033502c918.1407252152@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/5265/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 5, 2014, 3:22 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1406687759 14400
#      Tue Jul 29 22:35:59 2014 -0400
# Node ID 90e315e934033502c91853ab6539f2c30dbf93d3
# Parent  ad790b3574a52375f62a628d0dab2892b229e3fe
test-run-tests.t: add tests for skips

This will make some minor behavior changes in a future patch more obvious.

Patch

diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -247,3 +247,18 @@ 
   # Producing time report
   cuser   csys    real      Test
   \s*[\d\.]{5}   \s*[\d\.]{5}   \s*[\d\.]{5}   test-success.t (re)
+
+Skips
+================
+  $ cat > test-skip.t <<EOF
+  >   $ echo xyzzy
+  >   $ exit 80
+  > EOF
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` --nodiff
+  !.s
+  Skipped test-skip.t: irrelevant
+  Failed test-failure.t: output changed
+  # Ran 2 tests, 1 skipped, 0 warned, 1 failed.
+  python hash seed: * (glob)
+  [1]
+