import os import sys import time import urllib import urllib2 try: import simplejson as json except: import json import time import zipfile import config config = config.Config() config.ensure_dist_test_configured() TEST_MASTER = config.DIST_TEST_MASTER LAST_JOB_PATH = config.DIST_TEST_JOB_PATH RED = "\x1b[31m" YELLOW = "\x1b[33m" GREEN = "\x1b[32m" RESET = "\x1b[m" LOG = logging.getLogger('dist_test.client') LOG.setLevel(logging.INFO) def is_tty(): return hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()
import sys import time import urllib import urllib2 try: import simplejson as json except: import json import time import zipfile import config config = config.Config() config.ensure_dist_test_configured() TEST_MASTER = config.DIST_TEST_MASTER LAST_JOB_PATH = config.DIST_TEST_JOB_PATH RED = "\x1b[31m" YELLOW = "\x1b[33m" GREEN = "\x1b[32m" RESET = "\x1b[m" # Set a relatively long socket timeout, but short enough # that if the server side is completely hung, we won't # hang forever. SOCKET_TIMEOUT_SECS = 60 LOG = logging.getLogger("dist_test.client") LOG.setLevel(logging.INFO)