def __init__(self, source):
     if not os.path.exists('fwunit.yaml'):
         raise RuntimeError(
             'Tests must be run from the directory containing `fwunit.yaml`'
         )
     cfg = config.load_config('fwunit.yaml')
     self.source = sources.load_source(cfg, source)
コード例 #2
0
ファイル: testcontext.py プロジェクト: Chonghao/build-fwunit
 def __init__(self, source):
     if not os.path.exists('fwunit.yaml'):
         raise RuntimeError('Tests must be run from the directory containing `fwunit.yaml`')
     cfg = config.load_config('fwunit.yaml')
     self.source = sources.load_source(cfg, source)
コード例 #3
0
def _setup(parser):
    args = parser.parse_args(sys.argv[1:])
    log.setup(args.verbose)
    cfg = config.load_config(args.config_file)
    return args, cfg
コード例 #4
0
ファイル: scripts.py プロジェクト: djmitche/build-fwunit
def _setup(parser):
    args = parser.parse_args(sys.argv[1:])
    log.setup(args.verbose)
    cfg = config.load_config(args.config_file)
    return args, cfg