sAsUser = '', cMsTimeout = 3600000, fIgnoreErrors = True); if rc is None: rc = True; else: reporter.error('Unexpected value \"%s\" while executing non-existent file "%s"' % (rc, sProg)); print '%s: EXEC(%s ${SCRATCH}) -> %s' % (boolRes(rc), sProg, rc); # Done rc = oSession.syncDisconnect(); print '%s: disconnect() -> %s' % (boolRes(rc), rc); elif fReboot: print 'TESTING: syncReboot...' rc = oSession.syncReboot(); print '%s: REBOOT() -> %s' % (boolRes(rc), rc); if g_cFailures != 0: print 'tst-txsclient.py: %u out of %u test failed' % (g_cFailures, g_cTests); return 1; print 'tst-txsclient.py: all %u tests passed!' % (g_cTests); return 0; if __name__ == '__main__': reporter.incVerbosity(); reporter.incVerbosity(); reporter.incVerbosity(); reporter.incVerbosity(); sys.exit(main(sys.argv));
fIgnoreErrors=True, ) if rc is None: rc = True else: reporter.error('Unexpected value "%s" while executing non-existent file "%s"' % (rc, sProg)) print "%s: EXEC(%s ${SCRATCH}) -> %s" % (boolRes(rc), sProg, rc) # Done rc = oSession.syncDisconnect() print "%s: disconnect() -> %s" % (boolRes(rc), rc) elif fReboot: print "TESTING: syncReboot..." rc = oSession.syncReboot() print "%s: REBOOT() -> %s" % (boolRes(rc), rc) if g_cFailures != 0: print "tst-txsclient.py: %u out of %u test failed" % (g_cFailures, g_cTests) return 1 print "tst-txsclient.py: all %u tests passed!" % (g_cTests) return 0 if __name__ == "__main__": reporter.incVerbosity() reporter.incVerbosity() reporter.incVerbosity() reporter.incVerbosity() sys.exit(main(sys.argv))