You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2013/05/03 15:25:00 UTC

svn commit: r1478775 - /accumulo/branches/1.5/test/system/auto/simple/examples.py

Author: ecn
Date: Fri May  3 13:24:59 2013
New Revision: 1478775

URL: http://svn.apache.org/r1478775
Log:
ACCUMULO-1369 insert failures change return code

Modified:
    accumulo/branches/1.5/test/system/auto/simple/examples.py

Modified: accumulo/branches/1.5/test/system/auto/simple/examples.py
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/test/system/auto/simple/examples.py?rev=1478775&r1=1478774&r2=1478775&view=diff
==============================================================================
--- accumulo/branches/1.5/test/system/auto/simple/examples.py (original)
+++ accumulo/branches/1.5/test/system/auto/simple/examples.py Fri May  3 13:24:59 2013
@@ -43,9 +43,9 @@ class Examples(TestUtilsMixin, unittest.
     def runExample(self, cmd):
         return self.wait(self.runOn(self.masterHost(), [self.accumulo_sh(),] + cmd))
 
-    def ashell(self, input):
+    def ashell(self, input, expected = 0):
         out, err, code = self.shell(self.masterHost(), input + '\n')
-        self.assert_(code == 0)
+        self.assert_(code == expected)
         return out
 
     def comment(self, description):
@@ -262,7 +262,7 @@ class Examples(TestUtilsMixin, unittest.
             'insert r1 cf1 cq1 ABC',
             'scan',
             'quit'
-            ]))
+            ]), 1)
         self.comment("Performing some row operations")
         self.runExample(['org.apache.accumulo.simple.examples.client.RowOperations', 
                         '-i', INSTANCE_NAME,