comparison tests/test-inotify-debuginotify.t @ 12451:17ebf11bff81

tests: unify test-inotify-debuginotify
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Sep 2010 13:43:21 -0500
parents tests/test-inotify-debuginotify@3e09bc5fee12
children 104e120416ec
comparison
equal deleted inserted replaced
12450:0fcdae13493b 12451:17ebf11bff81
1
2 $ "$TESTDIR/hghave" inotify || exit 80
3 $ hg init
4 $ echo "[extensions]" >> $HGRCPATH
5 $ echo "inotify=" >> $HGRCPATH
6
7 inserve
8
9 $ hg inserve -d --pid-file=hg.pid
10 $ cat hg.pid >> "$DAEMON_PIDS"
11
12 let the daemon finish its stuff
13
14 $ sleep 1
15
16 empty
17
18 $ hg debuginotify
19 directories being watched:
20 /
21 .hg/
22 $ mkdir a
23 $ sleep 1
24
25 only 'a
26
27 $ hg debuginotify
28 directories being watched:
29 /
30 .hg/
31 a/
32 $ rmdir a
33 $ sleep 1
34
35 empty again
36
37 $ hg debuginotify
38 directories being watched:
39 /
40 .hg/
41 $ kill `cat hg.pid`