def _testCmds( self, _shellEnv, testCmds, whichEnv ):
        for cmd, pattern in testCmds:
            dprint( "\nExecuting '%s' with %s environment" % (cmd, whichEnv))
            p = javashell.shellexecute(cmd)
            line = PyFile( p.getInputStream() ).readlines()[0]
            assert re.match( pattern, line ), \
                    "expected match for %s, got %s" % ( pattern, line )
            dprint( "waiting for", cmd, "to complete")
            assert not p.waitFor(), \
                    "%s failed with %s environment" % (cmd, whichEnv)
Deletes the secondary backup if it exists, upon successful backup.
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_javashell.py/JavaShellTest._testCmds--crossover with--dataset/ETHPy150Open AppScale/appscale/AppDB/backup/backup_recovery_helper.py/delete_secondary_backup