Patchwork [1,of,2,RFC] cmdserver: prepare test for starting server without repository

login
register
mail settings
Submitter Yuya Nishihara
Date March 6, 2014, 1:02 p.m.
Message ID <f5a932e110053629281a.1394110922@gimlet>
Download mbox | patch
Permalink /patch/3877/
State Accepted
Commit 9524938c8ff8e29e410060a4a963019500e648c1
Headers show

Comments

Yuya Nishihara - March 6, 2014, 1:02 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1393855877 -32400
#      Mon Mar 03 23:11:17 2014 +0900
# Node ID f5a932e110053629281ab0597349dc78a045418e
# Parent  779ceb84f4f782d32dfe47f6684107c08d2f6142
cmdserver: prepare test for starting server without repository

Patch

diff --git a/tests/test-commandserver.py b/tests/test-commandserver.py
--- a/tests/test-commandserver.py
+++ b/tests/test-commandserver.py
@@ -295,7 +295,8 @@  def mqoutsidechanges(server):
     runcommand(server, ['qqueue', '--active'])
 
 if __name__ == '__main__':
-    os.system('hg init')
+    os.system('hg init repo')
+    os.chdir('repo')
 
     check(hellomessage)
     check(unknowncommand)
diff --git a/tests/test-commandserver.py.out b/tests/test-commandserver.py.out
--- a/tests/test-commandserver.py.out
+++ b/tests/test-commandserver.py.out
@@ -73,7 +73,7 @@  testing cwd:
 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"