accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1478775 - /accumulo/branches/1.5/test/system/auto/simple/examples.py
Date Fri, 03 May 2013 13:25:00 GMT
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,



Mime
View raw message