mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
fa1c4e5ebe
Many tests didn't change back from subdirectories at the end of the tests ... and they don't have to. The missing 'cd ..' could always be added when another test case is added to the test file. This change do that tests (99.5%) consistently end up in $TESTDIR where they started, thus making it simpler to extend them or move them around.
39 lines
934 B
Perl
39 lines
934 B
Perl
|
|
$ "$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
|
|
|
|
if we try to start twice the server, make sure we get a correct error
|
|
|
|
$ hg inserve -d --pid-file=hg2.pid
|
|
abort: inotify-server: cannot start: socket is already bound
|
|
abort: child process failed to start
|
|
[255]
|
|
$ kill `cat hg.pid`
|
|
|
|
$ cd ..
|