Review Board 1.7.22


ACCUMULO-1789 Add timeout scaling factor to tests

Review Request #14844 - Created Oct. 22, 2013 and submitted

Bill Havanki
1.5.1-SNAPSHOT
ACCUMULO-1789
Reviewers
accumulo
accumulo
Slower hardware or VMs may have trouble completing tests within the timeouts specified. This change adds a -f option to run.py to add a scaling factor to the maxRuntime for tests, the timeout for Accumulo to shut down, and to a specific timeout in SimpleBalancerFairness.
Ran simple tests on 3-node Accumulo 1.5.0 cluster under CDH 4.3. Some tests fail with no added factor, but all pass with -f 3.
test/system/auto/JavaTest.py
Revision 25c0c2ad03a9fce4c295e4c117086418b8f0fb79 New Change
[20] 38 lines
[+20] [+] def setUp(self):
39
        assert handle.returncode==0
39
        assert handle.returncode==0
40

    
   
40

   
41
        self.settings = TestUtilsMixin.settings.copy()
41
        self.settings = TestUtilsMixin.settings.copy()
42
        self.settings.update(eval(out))
42
        self.settings.update(eval(out))
43
        TestUtilsMixin.setUp(self);
43
        TestUtilsMixin.setUp(self);

    
   
44
        self.maxRuntime = self.timeout_factor * self.maxRuntime
44

    
   
45

   
45
        handle = self.runJTest(self.masterHost(),'setup')
46
        handle = self.runJTest(self.masterHost(),'setup')
46
        out,err = handle.communicate()
47
        out,err = handle.communicate()
47
        log.debug(out)
48
        log.debug(out)
48
        log.debug(err)
49
        log.debug(err)
[+20] [20] 18 lines
test/system/auto/TestUtils.py
Revision e9b79b827ac3b20d0ddb5179055a6027f3efd37a New Change
 
test/system/auto/run.py
Revision 11fabf2ef3df23f05f794fc59a94d3a3302e7462 New Change
 
test/system/auto/simple/simpleBalancer.py
Revision 7b57d2a8c81f8ff1e28b5932cbcc93d8a1fe0414 New Change
 
  1. test/system/auto/JavaTest.py: Loading...
  2. test/system/auto/TestUtils.py: Loading...
  3. test/system/auto/run.py: Loading...
  4. test/system/auto/simple/simpleBalancer.py: Loading...