Skip to content

Check yaml file syntax only once to save some time #82

@vnadot

Description

@vnadot

In suite mode, you can instantiate several yaml. For each yaml file, WeTest checks the syntax for each file. If you call the same file n times (example below), WeTest checks the same file n times. Some time could be saved here. Would it be possible to check the syntax only one time for the same yaml files ?

$ cat suite_epicsComGen.yaml 
version: {major: 2, minor: 0, bugfix: 0}

include:
  - ['epicsComGen_WeTest_bo_range.yaml', PV_NAME: '${P}GenTestModeCmd', PV_NAME_RB: '${P}GenTestModeRb', ZNAM: 'operation', ONAM: 'test', delay: 0.001] # sec
  - ['epicsComGen_WeTest_bo_range.yaml', PV_NAME: '${P}GenIocStartedCmd', PV_NAME_RB: '${P}GenIocStartedRb', ZNAM: 'IOC not started', ONAM: 'IOC started', delay: 0.001] # sec
  - ['epicsComGen_WeTest_bo_range.yaml', PV_NAME: '${P}GenHealthIocStartedDisaCmd', PV_NAME_RB: '${P}GenHealthIocStartedDisaRb', ZNAM: 'enable', ONAM: 'disable', delay: 0.001] # sec
  - ...
$ ./wetest suite_epicsComGen.yaml -m P=SL-SCL-CM1:RF-RFFI-1: --no-gui --force-play --no-pv --no-pdf-output
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_bo_range.yaml
Validation of YAML scenario file: epicsComGen_WeTest_ao_range.yaml

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions