test: align Linux replay guard with reviewed production source
v2-ci / unit-tests (pull_request) Has been cancelled
v2-ci / unit-tests (pull_request) Has been cancelled
This commit is contained in:
@@ -17,7 +17,7 @@ ROOT = HERE.parents[2]
|
||||
PROJECT = ROOT / 'tests/Server/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests/ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests.csproj'
|
||||
APPNAME = 'ZB.MOM.WW.OtOpcUa.OpcUaServer.IntegrationTests'
|
||||
TARGET = 'Repeated_lifecycles_return_resources_to_a_steady_baseline'
|
||||
BASE = '7b353d7bae5311a2f0a33c0a82c88d2c5b49d76f'
|
||||
BASE = 'cd60e469a100412ee08f598accad07a6959778ba'
|
||||
|
||||
|
||||
def write(path, value):
|
||||
@@ -97,7 +97,7 @@ def main():
|
||||
revision = subprocess.check_output(['git', '-C', str(ROOT), 'rev-parse', 'HEAD'], text=True).strip()
|
||||
production_diff = subprocess.check_output(['git', '-C', str(ROOT), 'diff', BASE, 'HEAD', '--', 'src', 'Directory.Packages.props', 'Directory.Build.props'], text=True)
|
||||
if production_diff:
|
||||
raise RuntimeError('Production/package source differs from recorded 7b353d7b compatibility build; review required')
|
||||
raise RuntimeError('Production/package source differs from reviewed cd60e469 source; review required')
|
||||
image = json.loads(subprocess.check_output(['docker', 'image', 'inspect', args.image, '--format', '{{json .}}'], text=True))
|
||||
if image['Architecture'] != 'arm64' or image['Os'] != 'linux':
|
||||
raise RuntimeError('Expected cached official Linux ARM64 image')
|
||||
|
||||
Reference in New Issue
Block a user