[PATCH 1 of 2] Add test reproducing a bug in "hg serve -v"

Joel Rosdahl joel at rosdahl.net
Mon Jun 4 15:01:45 CDT 2007


# HG changeset patch
# User Joel Rosdahl <joel at rosdahl.net>
# Date 1180986539 -7200
# Node ID f743c2da8b6d2a6cd1215858258b2a290183eefd
# Parent  b2b55acbacdd6d52f62911cd7df242a4ce610460
Add test reproducing a bug in "hg serve -v"

diff --git a/tests/test-serve b/tests/test-serve
new file mode 100755
--- /dev/null
+++ b/tests/test-serve
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+hg init test
+cd test
+
+echo % Without -v
+hg serve -a localhost -p 20063 -d --pid-file=hg.pid
+kill `cat hg.pid`
+
+echo % With -v
+hg serve -a localhost -p 20063 -d --pid-file=hg.pid -v
+kill `cat hg.pid`
diff --git a/tests/test-serve.out b/tests/test-serve.out
new file mode 100644
--- /dev/null
+++ b/tests/test-serve.out
@@ -0,0 +1,3 @@
+% Without -v
+% With -v
+listening at http://localhost:20063/


More information about the Mercurial-devel mailing list