diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-11-19 13:00:52 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-11-19 14:01:40 +0000 |
commit | f77ddb9e114e560724d6548499047ae6894ab59c (patch) | |
tree | 6341c27ca32fb5e1262f1263974991a1d6357b22 /lua/tests/027-create-multiple.lua | |
parent | d14557d434de5cb1c9754ae0f3e8e820e0a46694 (diff) | |
download | libguestfs-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-x | lua/tests/027-create-multiple.lua | 15 |
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'") |