##// 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 """ check that --cwd doesn't persist between requests """
128 """ check that --cwd doesn't persist between requests """
129 readchannel(server)
129 readchannel(server)
130 os.mkdir('foo')
130 os.mkdir('foo')
131 f = open('foo/bar', 'w')
131 f = open('foo/bar', 'wb')
132 f.write('a')
132 f.write('a')
133 f.close()
133 f.close()
134 runcommand(server, ['--cwd', 'foo', 'st', 'bar'])
134 runcommand(server, ['--cwd', 'foo', 'st', 'bar'])
@@ -145,7 +145,7 b' def localhgrc(server):'
145
145
146 # but not for this repo
146 # but not for this repo
147 runcommand(server, ['init', 'foo'])
147 runcommand(server, ['init', 'foo'])
148 runcommand(server, ['-R', 'foo', 'showconfig'])
148 runcommand(server, ['-R', 'foo', 'showconfig', 'ui', 'defaults'])
149 shutil.rmtree('foo')
149 shutil.rmtree('foo')
150
150
151 def hook(**args):
151 def hook(**args):
@@ -160,7 +160,10 b' def hookoutput(server):'
160
160
161 def outsidechanges(server):
161 def outsidechanges(server):
162 readchannel(server)
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 runcommand(server, ['tip'])
167 runcommand(server, ['tip'])
165
168
166 def bookmarks(server):
169 def bookmarks(server):
@@ -77,8 +77,7 b' defaults.tag=-d "0 0"'
77 ui.slash=True
77 ui.slash=True
78 ui.foo=bar
78 ui.foo=bar
79 runcommand init foo
79 runcommand init foo
80 runcommand -R foo showconfig
80 runcommand -R foo showconfig ui defaults
81 bundle.mainreporoot=$TESTTMP/foo
82 defaults.backout=-d "0 0"
81 defaults.backout=-d "0 0"
83 defaults.commit=-d "0 0"
82 defaults.commit=-d "0 0"
84 defaults.tag=-d "0 0"
83 defaults.tag=-d "0 0"
General Comments 0
You need to be logged in to leave comments. Login now