##// END OF EJS Templates
tests: unify test-inotify-issue1208
Matt Mackall -
r12453:b98d9314 default
parent child Browse files
Show More
@@ -1,24 +1,29 b''
1 #!/bin/sh
2
3 "$TESTDIR/hghave" inotify || exit 80
4 1
5 echo "[extensions]" >> $HGRCPATH
6 echo "inotify=" >> $HGRCPATH
2 $ "$TESTDIR/hghave" inotify || exit 80
3 $ echo "[extensions]" >> $HGRCPATH
4 $ echo "inotify=" >> $HGRCPATH
5 $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
6 $ hg init $p
7 $ cd $p
7 8
8 p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
9 hg init $p
10 cd $p
9 fail
11 10
12 echo % fail
13 ln -sf doesnotexist .hg/inotify.sock
14 hg st
15 hg inserve
16 rm .hg/inotify.sock
11 $ ln -sf doesnotexist .hg/inotify.sock
12 $ hg st
13 abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
14 inotify-client: could not start inotify server: child process failed to start
15 $ hg inserve
16 abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink
17 [255]
18 $ rm .hg/inotify.sock
17 19
18 echo % inserve
19 hg inserve -d --pid-file=hg.pid
20 cat hg.pid >> "$DAEMON_PIDS"
21 echo % status
22 hg status
20 inserve
21
22 $ hg inserve -d --pid-file=hg.pid
23 $ cat hg.pid >> "$DAEMON_PIDS"
23 24
24 kill `cat hg.pid`
25 status
26
27 $ hg status
28 ? hg.pid
29 $ kill `cat hg.pid`
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now