summaryrefslogtreecommitdiffstats
path: root/lua/tests/027-create-multiple.lua
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-19 13:00:52 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-11-19 14:01:40 +0000
commitf77ddb9e114e560724d6548499047ae6894ab59c (patch)
tree6341c27ca32fb5e1262f1263974991a1d6357b22 /lua/tests/027-create-multiple.lua
parentd14557d434de5cb1c9754ae0f3e8e820e0a46694 (diff)
downloadlibguestfs-f77ddb9e114e560724d6548499047ae6894ab59c.tar.gz
libguestfs-f77ddb9e114e560724d6548499047ae6894ab59c.tar.xz
libguestfs-f77ddb9e114e560724d6548499047ae6894ab59c.zip
lua: Various fixes and enhancements:
- add support for events (with test) - test progress messages - update documentation to describe events - refactor handle closing code - refactor error code - use 'assert' in test code instead of 'if ... then error end'
Diffstat (limited to 'lua/tests/027-create-multiple.lua')
-rwxr-xr-xlua/tests/027-create-multiple.lua15
1 files changed, 3 insertions, 12 deletions
diff --git a/lua/tests/027-create-multiple.lua b/lua/tests/027-create-multiple.lua
index 30ce6155..bd6cae56 100755
--- a/lua/tests/027-create-multiple.lua
+++ b/lua/tests/027-create-multiple.lua
@@ -27,15 +27,6 @@ g1:set_path ("1")
g2:set_path ("2")
g3:set_path ("3")
-if g1:get_path () ~= "1" then
- error (string.format ("incorrect path in g1, expected '1', got '%s'",
- g1:get_path ()))
-end
-if g2:get_path () ~= "2" then
- error (string.format ("incorrect path in g2, expected '2', got '%s'",
- g2:get_path ()))
-end
-if g3:get_path () ~= "3" then
- error (string.format ("incorrect path in g3, expected '3', got '%s'",
- g3:get_path ()))
-end
+assert (g1:get_path () == "1", "incorrect path in g1, expected '1'")
+assert (g2:get_path () == "2", "incorrect path in g2, expected '2'")
+assert (g3:get_path () == "3", "incorrect path in g3, expected '3'")