diff tests/test-inotify-dirty-dirstate @ 9859:951ec6c7d703

inotify: workaround test-inotify-dirty-dirstate failures - disable inotify during clone - record inotify daemon PID, in order to have them properly killed
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 16 Nov 2009 11:58:03 +0100
parents f47c0881b16e
children 97eda2133a9b
line wrap: on
line diff
--- a/tests/test-inotify-dirty-dirstate	Mon Nov 16 11:55:29 2009 +0100
+++ b/tests/test-inotify-dirty-dirstate	Mon Nov 16 11:58:03 2009 +0100
@@ -11,6 +11,8 @@
 echo % issue1810: inotify and fetch
 mkdir test; cd test
 hg init
+hg inserve -d --pid-file=../hg.pid
+cat ../hg.pid >> "$DAEMON_PIDS"
 
 echo foo > foo
 hg add
@@ -18,8 +20,10 @@
 
 cd ..
 
-hg clone test test2
+hg --config "extensions.inotify=!" clone test test2
 cd test2
+hg inserve -d --pid-file=../hg2.pid
+cat ../hg2.pid >> "$DAEMON_PIDS"
 echo bar > bar
 hg add
 hg ci -m bar
@@ -44,8 +48,8 @@
 cd test-1719
 
 echo % inserve
-hg inserve -d --pid-file=hg.pid
-cat hg.pid >> "$DAEMON_PIDS"
+hg inserve -d --pid-file=../hg-test-1719.pid
+cat ../hg-test-1719.pid >> "$DAEMON_PIDS"
 
 echo content > file
 hg add file