mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
config_tools: add assert to check if the scenario is valid
Add assert for below invalid scenario: 1. Two or more pre-launched RTVM 2. One pre-launched RTVM and one or more post-launched RTVM Tracked-On: #6685 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
This commit is contained in:
parent
29b8da2a51
commit
3b4d3a3ceb
@ -52,4 +52,20 @@ https://github.com/projectacrn/acrn-hypervisor/issues if you meet this.</xs:docu
|
|||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:assert>
|
</xs:assert>
|
||||||
|
|
||||||
|
<xs:assert test="(count(vm[vm_type = 'PRE_RT_VM']) = 1 and count(vm[vm_type='POST_RT_VM']) = 0)
|
||||||
|
or (count(vm[vm_type='PRE_RT_VM']) = 0 and count(vm[vm_type='POST_RT_VM']) >= 0)">
|
||||||
|
<xs:annotation acrn:severity="error">
|
||||||
|
<xs:documentation>There should not be both pre-launched RTVM and post-launched RTVM.
|
||||||
|
And two or more pre-launched RTVM are not allowed.
|
||||||
|
|
||||||
|
This assertion checks below invalid scenario:
|
||||||
|
|
||||||
|
- Two or more pre-launched RTVM
|
||||||
|
- One pre-launched RTVM and one or more post-launched RTVM
|
||||||
|
|
||||||
|
To fix this error, please check the RTVM number to ensure the scenario configuration is valid.</xs:documentation>
|
||||||
|
|
||||||
|
</xs:annotation>
|
||||||
|
</xs:assert>
|
||||||
|
|
||||||
</xs:schema>
|
</xs:schema>
|
||||||
|
Loading…
Reference in New Issue
Block a user