src/tests/cli/t_pkg_history.py
changeset 1505 cc598d70bbbe
parent 1431 62b6033670e4
child 1516 8c950a3b4171
--- a/src/tests/cli/t_pkg_history.py	Tue Nov 17 17:06:35 2009 -0600
+++ b/src/tests/cli/t_pkg_history.py	Wed Nov 18 15:53:48 2009 -0800
@@ -89,15 +89,15 @@
 
                 durl2 = self.dcs[2].get_depot_url()
                 commands = [
-                    "install foo",
-                    "uninstall foo",
-                    "image-update",
-                    "set-publisher -O " + durl2 + " test2",
-                    "set-publisher -P test1",
-                    "set-publisher -m " + durl2 + " test1",
-                    "set-publisher -M " + durl2 + " test1",
-                    "unset-publisher test2",
-                    "rebuild-index"
+                    ("install foo", 0),
+                    ("uninstall foo", 0),
+                    ("image-update", 4), 
+                    ("set-publisher -O " + durl2 + " test2", 0),
+                    ("set-publisher -P test1", 0), 
+                    ("set-publisher -m " + durl2 + " test1", 0),
+                    ("set-publisher -M " + durl2 + " test1", 0),
+                    ("unset-publisher test2", 0),
+                    ("rebuild-index", 0)
                 ]
 
                 operations = [
@@ -111,8 +111,8 @@
                     "rebuild-index"
                 ]
 
-                for cmd in commands:
-                        self.pkg(cmd)
+                for cmd, exit in commands:
+                        self.pkg(cmd, exit=exit)
 
                 self.pkg("history -H")
                 o = self.output
@@ -129,7 +129,7 @@
                 # The actual commands are only found in long format.
                 self.pkg("history -l")
                 o = self.output
-                for cmd in commands:
+                for cmd, exit in commands:
                         # Verify that each of the commands was recorded.
                         if o.find(" %s" % cmd) == -1:
                                 raise RuntimeError("Command: %s wasn't recorded,"