changeset 20649:9524938c8ff8

cmdserver: prepare test for starting server without repository
author Yuya Nishihara <yuya@tcha.org>
date Mon, 03 Mar 2014 23:11:17 +0900
parents 0838bd2f600f
children e811b93f2cb1
files tests/test-commandserver.py tests/test-commandserver.py.out
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-commandserver.py	Thu Mar 06 01:24:03 2014 +0100
+++ b/tests/test-commandserver.py	Mon Mar 03 23:11:17 2014 +0900
@@ -295,7 +295,8 @@
     runcommand(server, ['qqueue', '--active'])
 
 if __name__ == '__main__':
-    os.system('hg init')
+    os.system('hg init repo')
+    os.chdir('repo')
 
     check(hellomessage)
     check(unknowncommand)
--- a/tests/test-commandserver.py.out	Thu Mar 06 01:24:03 2014 +0100
+++ b/tests/test-commandserver.py.out	Mon Mar 03 23:11:17 2014 +0900
@@ -73,7 +73,7 @@
 testing localhgrc:
 
  runcommand showconfig
-bundle.mainreporoot=$TESTTMP
+bundle.mainreporoot=$TESTTMP/repo
 defaults.backout=-d "0 0"
 defaults.commit=-d "0 0"
 defaults.shelve=--date "0 0"