# HG changeset patch
# User Eduardo Lima (Etrunko) <eblima(a)br.ibm.com>
# Date 1308764046 10800
# Node ID 51b9e8dda4ed81bd692c6a23f14506b4561da09b
# Parent 9dcade76d903ae2c28fb35d1b28546a2324c1190
[TEST] Fix syntax errors introduced by previous patch
LogicalDisk - 01_disk.py: FAIL
File "01_disk.py", line 63
else if dev.Name != test_dev:
^
SyntaxError: invalid syntax
Memory - 01_memory.py: FAIL
File "01_memory.py", line 62
else if dev.ConsumableBlocks > dev.NumberOfBlocks:
^
SyntaxError: invalid syntax
Signed-off-by: Eduardo Lima (Etrunko) <eblima(a)br.ibm.com>
diff --git a/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py
b/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py
--- a/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py
+++ b/suites/libvirt-cim/cimtest/LogicalDisk/01_disk.py
@@ -60,7 +60,7 @@
if dev is None:
logger.error("GetInstance() returned None")
status = 1
- else if dev.Name != test_dev:
+ elif dev.Name != test_dev:
logger.error("Name should be `%s' instead of `%s'", test_dev,
dev.Name)
status = 1
diff --git a/suites/libvirt-cim/cimtest/Memory/01_memory.py
b/suites/libvirt-cim/cimtest/Memory/01_memory.py
--- a/suites/libvirt-cim/cimtest/Memory/01_memory.py
+++ b/suites/libvirt-cim/cimtest/Memory/01_memory.py
@@ -59,7 +59,7 @@
if dev is None:
logger.error("GetInstance() returned None")
status = 1
- else if dev.ConsumableBlocks > dev.NumberOfBlocks:
+ elif dev.ConsumableBlocks > dev.NumberOfBlocks:
logger.error("ConsumableBlocks should not be larger than
NumberOfBlocks")
status = 1