Ejemplo n.º 1
0
def init(self, args):
    passargs = []
    tests = []

    for i in args:
        if i == "all":
            tests += availableTests
            continue
        if i == "1":
            tests += avail1
            continue
        if i == "2":
            tests += avail2
            continue
        if i == "3":
            tests += avail3
            continue
        passargs.append(i)

    self.tests = btl.selectTests(availableTests, passargs + tests)
    if len(self.tests) == 0:
        self.tests = defaultTests
Ejemplo n.º 2
0
def init(self, args):
    self.tests = btl.selectTests(availableTests, args)
    if len(self.tests) == 0:
        self.tests = defaultTests