##// END OF EJS Templates
tests: make test-commandserver.py independent of line ending and slash direction
Mads Kiilerich -
r15542:e1930259 default
parent child Browse files
Show More
@@ -128,7 +128,7 b' def cwd(server):'
128 128 """ check that --cwd doesn't persist between requests """
129 129 readchannel(server)
130 130 os.mkdir('foo')
131 f = open('foo/bar', 'w')
131 f = open('foo/bar', 'wb')
132 132 f.write('a')
133 133 f.close()
134 134 runcommand(server, ['--cwd', 'foo', 'st', 'bar'])
@@ -145,7 +145,7 b' def localhgrc(server):'
145 145
146 146 # but not for this repo
147 147 runcommand(server, ['init', 'foo'])
148 runcommand(server, ['-R', 'foo', 'showconfig'])
148 runcommand(server, ['-R', 'foo', 'showconfig', 'ui', 'defaults'])
149 149 shutil.rmtree('foo')
150 150
151 151 def hook(**args):
@@ -160,7 +160,10 b' def hookoutput(server):'
160 160
161 161 def outsidechanges(server):
162 162 readchannel(server)
163 os.system('echo a >> a && hg ci -Am2')
163 f = open('a', 'ab')
164 f.write('a\n')
165 f.close()
166 os.system('hg ci -Am2')
164 167 runcommand(server, ['tip'])
165 168
166 169 def bookmarks(server):
@@ -77,8 +77,7 b' defaults.tag=-d "0 0"'
77 77 ui.slash=True
78 78 ui.foo=bar
79 79 runcommand init foo
80 runcommand -R foo showconfig
81 bundle.mainreporoot=$TESTTMP/foo
80 runcommand -R foo showconfig ui defaults
82 81 defaults.backout=-d "0 0"
83 82 defaults.commit=-d "0 0"
84 83 defaults.tag=-d "0 0"
General Comments 0
You need to be logged in to leave comments. Login now