Patchwork [04,of,11,FOR-REFERENCE] test-run-tests.t: test running a passing test

login
register
mail settings
Submitter Pierre-Yves David
Date June 2, 2014, 7:54 p.m.
Message ID <ac5927a3b3f846cff3ae.1401738879@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/4917/
State Accepted
Commit 34e0bd895afc9e503185f28fa940901fe655b3df
Headers show

Comments

Pierre-Yves David - June 2, 2014, 7:54 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1401477019 25200
#      Fri May 30 12:10:19 2014 -0700
# Node ID ac5927a3b3f846cff3aebfccf3f7a59c4cec0a83
# Parent  99716afc4e76e98114a320793933d9a2d3a48e1f
test-run-tests.t: test running a passing test
Pierre-Yves David - June 10, 2014, 10:23 p.m.
On 06/02/2014 12:54 PM, pierre-yves.david@ens-lyon.org wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@fb.com>
> # Date 1401477019 25200
> #      Fri May 30 12:10:19 2014 -0700
> # Node ID ac5927a3b3f846cff3aebfccf3f7a59c4cec0a83
> # Parent  99716afc4e76e98114a320793933d9a2d3a48e1f
> test-run-tests.t: test running a passing test

I pushed those first 4 (+ a warning fix) with Augie approval.

I'll wait for a V2 of anurag fixes before pushing the rests.

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
@@ -4,5 +4,17 @@  Smoke test
 ============
 
   $ $TESTDIR/run-tests.py
   
   # Ran 0 tests, 0 skipped, 0 warned, 0 failed.
+
+a succesful test
+=======================
+
+  $ cat > test-success.t << EOF
+  >   $ echo babar
+  >   babar
+  > EOF
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg`
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.