def main(): # Argument parsing ns = util.do_argparse() if ns.debug: logging.basicConfig (level = logging.DEBUG) coveragerc = os.path.abspath (os.path.join (qa_dir, '../.coveragerc')) os.environ['COVERAGE_PROCESS_START'] = coveragerc # Execute tests for f in get_tests(): print (colors.green(f)) fp = os.path.join (qa_dir, f) logging.info ('Executing: %s %s'%(sys.executable, fp)) subprocess.check_call ([sys.executable, fp] + sys.argv[1:])
analysis.init_coverage(__file__) import keys import colors # Globals TMP1 = '/tmp/pasalo-QA-1' TMP2 = '/tmp/pasalo-QA-2' DWN1 = '/tmp/pasalo-down-1' DWN2 = '/tmp/pasalo-down-2' HOST1_PORT = 44300 HOST1_URL = 'https://localhost:%s' %(HOST1_PORT) # Argument parsing ns = util.do_argparse() # Preparison print (colors.yellow(" * Remoing %s" %(', '.join([TMP1, TMP2, DWN1, DWN2])))) for d in (TMP1, TMP2, DWN1, DWN2): logging.info ("Removing %s"%(d)) shutil.rmtree (d, ignore_errors=True) # Create keys keys.init (ns.new_keys) keys.create ('1', TMP1, DWN1, HOST1_URL) keys.create ('2', TMP2, DWN2) # Test directory structure for path in (TMP1, TMP2):
analysis.init_coverage(__file__) import keys import colors # Globals TMP1 = '/tmp/pasalo-QA-1' TMP2 = '/tmp/pasalo-QA-2' DWN1 = '/tmp/pasalo-down-1' DWN2 = '/tmp/pasalo-down-2' HOST1_PORT = 44300 HOST1_URL = 'https://localhost:%s' % (HOST1_PORT) # Argument parsing ns = util.do_argparse() # Preparison print(colors.yellow(" * Remoing %s" % (', '.join([TMP1, TMP2, DWN1, DWN2])))) for d in (TMP1, TMP2, DWN1, DWN2): logging.info("Removing %s" % (d)) shutil.rmtree(d, ignore_errors=True) # Create keys keys.init(ns.new_keys) keys.create('1', TMP1, DWN1, HOST1_URL) keys.create('2', TMP2, DWN2) # Test directory structure for path in (TMP1, TMP2):