mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 02:22:56 +01:00
os.Environment: Add method conf_value()
Since all command instances carry config information from ~/.jw-devtestrc, make it available via a dedicated conf_value() method to all interested test cases. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ab8b04ad30
commit
1592ea933c
1 changed files with 6 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from .Connections import Connections
|
||||
from jwutils import Options
|
||||
from jwutils.log import *
|
||||
|
||||
class Environment:
|
||||
|
||||
|
|
@ -12,6 +13,10 @@ class Environment:
|
|||
self.features = Options(args.features)
|
||||
for spec in args.connection:
|
||||
self.connections.append(spec)
|
||||
slog(INFO, "Features = {}".format(self.features))
|
||||
|
||||
def conf_value(self, path, default=None):
|
||||
return self.cmd.conf_value(path, default)
|
||||
|
||||
@property
|
||||
def eloop(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue