[V1] framework/qemu_libvirt: fix python3 SyntaxWarning
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
Fix SyntaxWarning from python3.8 by `is/is not` opeartion.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
framework/qemu_libvirt.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -808,7 +808,7 @@ class LibvirtKvm(VirtBase):
for arg in args:
cmd = cmd_head + " " + str(arg)
- if command is "ping":
+ if command == "ping":
out = self.host_session.send_expect(cmd, "# ", int(args[0]))
else:
out = self.host_session.send_expect(cmd, "# ")