File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 17
17
import subprocess
18
18
from random import SystemRandom
19
19
import string
20
- import configparser
21
20
import sys
22
21
from typing import Optional
23
22
@@ -47,9 +46,7 @@ def conf_setup(self):
47
46
self .rpcuser = "rpcuser💻"
48
47
self .rpcpassword = "rpcpassword🔑"
49
48
50
- config = configparser .ConfigParser ()
51
- config .read_file (open (self .options .configfile ))
52
- gen_rpcauth = config ['environment' ]['RPCAUTH' ]
49
+ gen_rpcauth = self .config ["environment" ]["RPCAUTH" ]
53
50
54
51
# Generate RPCAUTH with specified password
55
52
self .rt2password = "8/F3uMDw4KSEbw96U3CA1C4X05dkHDN2BPFjTgZW4KI="
Original file line number Diff line number Diff line change @@ -272,9 +272,8 @@ def parse_args(self, test_file):
272
272
self .options .timeout_factor = self .options .timeout_factor or (4 if self .options .valgrind else 1 )
273
273
self .options .previous_releases_path = previous_releases_path
274
274
275
- config = configparser .ConfigParser ()
276
- config .read_file (open (self .options .configfile ))
277
- self .config = config
275
+ self .config = configparser .ConfigParser ()
276
+ self .config .read_file (open (self .options .configfile ))
278
277
self .binary_paths = self .get_binary_paths ()
279
278
if self .options .v1transport :
280
279
self .options .v2transport = False
@@ -314,10 +313,8 @@ def setup(self):
314
313
315
314
self .options .cachedir = os .path .abspath (self .options .cachedir )
316
315
317
- config = self .config
318
-
319
316
os .environ ['PATH' ] = os .pathsep .join ([
320
- os .path .join (config [' environment' ][ ' BUILDDIR' ], ' bin' ),
317
+ os .path .join (self . config [" environment" ][ " BUILDDIR" ], " bin" ),
321
318
os .environ ['PATH' ]
322
319
])
323
320
You can’t perform that action at this time.
0 commit comments