コード例 #1
0
def main():
	global proc

	err = 0
	nestor.init(mount=0)

	proc = nestor.process('proc')
	test = nestor.report(__file__)

	if print_sysinfo():
		err = 1

	proc.done()
	test.setResultStatus("PASS" if err == 0 else "FAIL")
コード例 #2
0
def main(params):

    nestor.init(mount = 0)
    test = nestor.report(__file__)
    proc = nestor.process(report = test)

    devices = [0]
    err = 0
    for param in params:
        ret = eval('%s(proc, devices)' % param)
        if ret == None:
            logging.info('test %s skipped' % param)
        else:
            if ret:
                logging.error('test %s failed' % param)
                err = 1
            else:
                logging.info('test %s ok' % param)

    test.setResultStatus('FAIL' if err else 'PASS')
    proc.done()
コード例 #3
0
            if verbose:
                print 'Testcase (%d/%d): %s SKIP' % (index, len(testsuite), testScript)

    junit_result_xml += build_result_end()

    xmlFp = open(xml_filename, 'w')
    xmlFp.write(junit_result_xml)
    xmlFp.close()

    print 'run finished'
    return test_results

if info_gen == 0:
    testsuite = get_testsuite()
    #mount = 1 if ('system_info_test.py' in testsuite) else 0
    nestor.init(mount = 0)

retry_test_list = []


for test, param, param_index in get_testsuite_extended():
    if param == None:
        testName = '%s' % test.replace('.py','')
    else:
        testName = '%s_%02d' % (test.replace('.py',''), param_index)

    testsummary[testName] = [0, 0, 0, 0]


testsuite_results = []