Change-Id: I15e803ff464efa360724a9939c5362762a9f7e9a
Signed-off-by: lbuckuli <lbuckuli@cisco.com>
Execute_Command_Passes
[Arguments] ${command} ${return_success_only}=True ${log_on_success}=False ${log_on_failure}=True ${stderr_must_be_empty}=False
[Documentation] Execute command via the active SSH connection. For success, rc has to be zero and optionally stderr has to be empty.
- ... Log everything, depending on arguments and success. Retrun either success string or stdout.
+ ... Log everything, depending on arguments and success. Return either success string or stdout.
... TODO: Do we want to support customizing return values the same way as SSHLibrary.Execute_Command does?
${stdout} ${stderr} ${rc} = SSHLibrary.Execute_Command ${command} return_stderr=True return_rc=True
${emptiness_status} ${result} = BuiltIn.Run_Keyword_And_Ignore_Error BuiltIn.Should_Be_Empty ${stderr}
[Documentation] Move snapshots and journal into the original ODL installation.
# SSHLibrary.Switch_Connection ${odl_system_ssh_index}
${stdout} = SSHKeywords.Execute_Command_Should_Pass cp -rv "${alternative_bundlefolder}/snapshots" "${WORKSPACE}/${BUNDLEFOLDER}/" && cp -rv "${alternative_bundlefolder}/journal" "${WORKSPACE}/${BUNDLEFOLDER}/"
- # TODO: Should we require a snapshot was created?
+ Set_Suite_Variable ${stdout}
+
+Check_Snapshot_With_Transferred_Persisted_Data
+ [Documentation] Fail if no snapshot file was created.
+ BuiltIn.Should_Contain ${stdout} /snapshots/ msg='Snapshot file was not created.'
Start_Newer_Odl
[Documentation] Start the newer ODL on background.