Use only Qemu Kill on the teardown of double qemu setup 38/3538/4
authorJan Gelety <jgelety@cisco.com>
Mon, 24 Oct 2016 09:05:03 +0000 (11:05 +0200)
committerMatej Klotton <mklotton@cisco.com>
Mon, 24 Oct 2016 15:29:45 +0000 (15:29 +0000)
- do not use Qemu System Powerdown or Qemu Quit in the teardown of
  double qemu setup
- use just Qemu Kill there

Change-Id: I8dd1e4055e0adb5d306e3a9904090a271d17c3e5
Signed-off-by: Jan Gelety <jgelety@cisco.com>
resources/libraries/robot/double_qemu_setup.robot

index 8a262c2..d8b32bd 100644 (file)
 | | ...
 | | [Arguments] | ${dut_node} | ${vm} | ${qemu_name}
 | | ${set_node}= | Replace Variables | ${qemu_name}.Qemu Set Node
-| | ${sys_status}= | Replace Variables | ${qemu_name}.Qemu System Status
 | | ${kill}= | Replace Variables | ${qemu_name}.Qemu Kill
-| | ${sys_pd}= | Replace Variables | ${qemu_name}.Qemu System Powerdown
-| | ${quit}= | Replace Variables | ${qemu_name}.Qemu Quit
 | | ${clear_socks}= | Replace Variables | ${qemu_name}.Qemu Clear Socks
 | | Run Keyword | ${set_node} | ${dut_node}
-| | ${status} | ${value}= | Run Keyword And Ignore Error | ${sys_status}
-| | Run Keyword If | "${status}" == "FAIL" | ${kill}
-| | ... | ELSE IF | "${value}" == "running" | ${sys_pd}
-| | ... | ELSE | ${quit}
+| | Run Keyword | ${kill}
 | | Run Keyword | ${clear_socks}
 | | Run Keyword If | ${vm} is not None | Disconnect | ${vm}

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.