Kiln » Fog Creek
Clone URL:  

Handle HOME directory centrally instead of in individual tests.

Changeset 8bc7351ad79e

Parent 33a441aa14b1

by David Golub

Changes to 4 files · Browse files at 8bc7351ad79e Showing diff from parent 33a441aa14b1 Diff from another changeset...

Change 1 of 1 Show Entire File tests/​kilntest.py Stacked
 
20
21
22
 
 
 
 
23
24
25
 
20
21
22
23
24
25
26
27
28
29
@@ -20,6 +20,10 @@
 PASSWORD = 'tester'  HOMEPATH = '/home/username'   +# Ensure that the home directory is set appropriately so that the kilnauth +# cookies will be found. This is important because Mercurial 1.9 and later +# changes the home directory in the test script. +os.environ['HOME'] = kilntest.HOMEPATH    def api(url):   return KILNURL + '/api/1.0/' + url
 
10
11
12
13
14
15
16
17
18
19
20
 
10
11
12
 
 
 
 
 
13
14
15
@@ -10,11 +10,6 @@
   hgt = common.BfilesTester()   -# Ensure that the home directory is set appropriately so that the kilnauth -# cookies will be found. This is important because Mercurial 1.9 and later -# changes the home directory in the test script. -os.environ['HOME'] = kilntest.HOMEPATH -  hgt.updaterc({'extensions': [('kilnauth', kilntest.KILNAUTHPATH)]})  hgt.announce('setup')  token = kilntest.gettoken()
 
10
11
12
13
14
15
16
17
18
19
20
 
10
11
12
 
 
 
 
 
13
14
15
@@ -10,11 +10,6 @@
   hgt = common.BfilesTester()   -# Ensure that the home directory is set appropriately so that the kilnauth -# cookies will be found. This is important because Mercurial 1.9 and later -# changes the home directory in the test script. -os.environ['HOME'] = kilntest.HOMEPATH -  hgt.updaterc({'extensions': [('kilnauth', kilntest.KILNAUTHPATH)]})  hgt.announce('setup')  token = kilntest.gettoken()
 
10
11
12
13
14
15
16
17
18
19
20
 
10
11
12
 
 
 
 
 
13
14
15
@@ -10,11 +10,6 @@
   hgt = common.BfilesTester()   -# Ensure that the home directory is set appropriately so that the kilnauth -# cookies will be found. This is important because Mercurial 1.9 and later -# changes the home directory in the test script. -os.environ['HOME'] = kilntest.HOMEPATH -  hgt.announce('setup')  token = kilntest.gettoken()  kilntest.deletetest(hgt, token)