Lines Matching +full:stdout +full:- +full:path

2 # SPDX-License-Identifier: GPL-2.0
5 tdc.py - Linux tc (Traffic Control) unit test driver
54 mn = fn[0:-3]
60 pgname = pgname[0:-3]
64 self.plugin_instances[-1].check_args(self.args, None)
89 pgd = ['plugin-lib', 'plugin-lib-custom']
98 if os.path.isfile(pgpath):
195 stdout=subprocess.PIPE,
202 foutput = serr.decode("utf-8", errors="ignore")
204 foutput = rawout.decode("utf-8", errors="ignore")
209 proc.stdout.close()
243 print("\n\n{} *** stdout ***".format(proc.stdout), file=sys.stderr)
272 prepare_env(args, pm, 'setup', "-----> prepare stage", tidx["setup"])
275 print('-----> execute stage')
294 print('-----> verify stage')
311 prepare_env(args, pm, 'teardown', '-----> teardown stage', tidx['teardown'], procout)
349 stage = 'pre-SUITE'
360 errmsg += "physical NIC with the -d option when running tdc.\n"
387 print('---------------')
390 print('---------------')
395 print('---------------')
400 # fill in the remaining tests with ok-skipped
404 for tidx in testlist[count - 1:]:
407 msg = 'skipped - previous {} failed {} {}'.format(stage,
408 index, badtest.get('id', '--Unknown--'))
461 '--outfile', type=str,
462 help='Path to the file in which results should be saved. ' +
465 '-p', '--path', type=str,
466 help='The full path to the tc executable to use')
474 '-D', '--directory', nargs='+', metavar='DIR',
476 '(default [tc-tests])')
478 '-f', '--file', nargs='+', metavar='FILE',
481 '-c', '--category', nargs='*', metavar='CATG', default=['+c'],
485 '-e', '--execute', nargs='+', metavar='ID',
488 '-l', '--list', action='store_true',
491 '-s', '--show', action='store_true', dest='showID',
494 '-i', '--id', action='store_true', dest='gen_id',
497 '-v', '--verbose', action='count', default=0,
500 '--format', default='tap', const='tap', nargs='?',
503 parser.add_argument('-d', '--device',
508 '-P', '--pause', action='store_true',
509 help='Pause execution just before post-suite stage')
521 if args.path != None:
522 NAMES['TC'] = args.path
527 if not os.path.isfile(NAMES['TC']):
528 print("The specified tc path " + NAMES['TC'] + " does not exist.")
633 testdirs = ['tc-tests']
636 # at least one file was specified - remove the default directory
640 if not os.path.isfile(ff):
643 flist.append(os.path.abspath(ff))
651 candidate = os.path.abspath(os.path.join(root, filename))
741 fname = 'test-results.{}'.format(suffix)