QA: check that doubly modifying an OS state is OK
authorIustin Pop <iustin@google.com>
Thu, 18 Nov 2010 09:23:48 +0000 (10:23 +0100)
committerIustin Pop <iustin@google.com>
Thu, 18 Nov 2010 13:03:49 +0000 (14:03 +0100)
This would have prevented the bug fixed in the previous patch :(

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

qa/qa_os.py

index 143fedc..e6e259a 100644 (file)
@@ -86,6 +86,9 @@ def _TestOsStates():
       new_cmd = cmd + ["--%s" % param, val, _TEMP_OS_NAME]
       AssertEqual(StartSSH(master["primary"],
                            utils.ShellQuoteArgs(new_cmd)).wait(), 0)
+      # check that double-running the command is OK
+      AssertEqual(StartSSH(master["primary"],
+                           utils.ShellQuoteArgs(new_cmd)).wait(), 0)
 
 
 def _SetupTempOs(node, dir, valid):