changeset 12453:b98d931482e6

tests: unify test-inotify-issue1208
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Sep 2010 13:43:21 -0500
parents f727db60abb4
children 9965b90c7ed7
files tests/test-inotify-issue1208 tests/test-inotify-issue1208.out tests/test-inotify-issue1208.t
diffstat 3 files changed, 29 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-inotify-issue1208	Sun Sep 26 13:43:21 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-"$TESTDIR/hghave" inotify || exit 80
-
-echo "[extensions]" >> $HGRCPATH
-echo "inotify=" >> $HGRCPATH
-
-p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-hg init $p
-cd $p
-
-echo % fail
-ln -sf doesnotexist .hg/inotify.sock
-hg st
-hg inserve
-rm .hg/inotify.sock
-
-echo % inserve
-hg inserve -d --pid-file=hg.pid
-cat hg.pid >> "$DAEMON_PIDS"
-echo % status
-hg status
-
-kill `cat hg.pid`
--- a/tests/test-inotify-issue1208.out	Sun Sep 26 13:43:21 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-% fail
-abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
-inotify-client: could not start inotify server: child process failed to start
-abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
-% inserve
-% status
-? hg.pid
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-inotify-issue1208.t	Sun Sep 26 13:43:21 2010 -0500
@@ -0,0 +1,29 @@
+
+  $ "$TESTDIR/hghave" inotify || exit 80
+  $ echo "[extensions]" >> $HGRCPATH
+  $ echo "inotify=" >> $HGRCPATH
+  $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+  $ hg init $p
+  $ cd $p
+
+fail
+
+  $ ln -sf doesnotexist .hg/inotify.sock
+  $ hg st
+  abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
+  inotify-client: could not start inotify server: child process failed to start
+  $ hg inserve
+  abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
+  [255]
+  $ rm .hg/inotify.sock
+
+inserve
+
+  $ hg inserve -d --pid-file=hg.pid
+  $ cat hg.pid >> "$DAEMON_PIDS"
+
+status
+
+  $ hg status
+  ? hg.pid
+  $ kill `cat hg.pid`