|
| tuple | parser = argparse.ArgumentParser(description="usage: %prog [options] testfile1 testfile2 ...") |
| |
| tuple | infoGroup = parser.add_argument_group('InfoGroup','Informational Options') |
| |
| string | action = "store_true" |
| |
| string | help = "Print version" |
| |
| tuple | execGroup = parser.add_argument_group('execGroup', "Execution Options") |
| |
| string | dest = "duration" |
| |
| tuple | debugGroup = parser.add_argument_group('debugGroup', 'Debug Options') |
| |
| tuple | args = parser.parse_args() |
| |
| list | mtthome = os.environ['MTT_HOME'] |
| |
| tuple | topdir = os.path.join(mtthome, "pylib") |
| |
| tuple | basedir = args.basediroros.path.join(mtthome, "pylib", "System") |
| |
| tuple | m = imp.load_source("TestDef", os.path.join(basedir, "TestDef.py")) |
| |
| tuple | cls = getattr(m, "TestDef") |
| |
| tuple | a = cls() |
| |
| tuple | testDef = a.__class__() |
| |
| string | fallback = "sequential" |
| |
| tuple | executor = args.executorortestDef.config.get('MTTDefaults', 'executor', fallback=fallback) |
| |
| tuple | status = testDef.executeTest() |
| |