cmdserver: prepare test for starting server without repository
authorYuya Nishihara <yuya@tcha.org>
Mon, 03 Mar 2014 23:11:17 +0900
changeset 20649 9524938c8ff8
parent 20648 0838bd2f600f
child 20650 e811b93f2cb1
cmdserver: prepare test for starting server without repository
tests/test-commandserver.py
tests/test-commandserver.py.out
--- 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"