else: test_pkg_name = "test" program_name = sys.argv[0] if program_name == '-c': program_name = 'python -c "import %s.go"' % test_pkg_name ########################################################################### # Set additional command line options # # Defined in test_runner.py as it shares options, added to here opt_parser.set_usage(""" Runs all or some of the %(pkg)s.xxxx_test tests. $ %(exec)s sprite threads -sd Runs the sprite and threads module tests isolated in subprocesses, dumping all failing tests info in the form of a dict. """ % {'pkg': test_pkg_name, 'exec': program_name}) opt_parser.add_option ( "-d", "--dump", action = 'store_true', help = "dump failures/errors as dict ready to eval" ) opt_parser.add_option ( "-F", "--file", help = "dump failures/errors to a file" ) opt_parser.add_option ( "-a", "--all", action = 'store_true',
test_pkg_name = "test" program_name = sys.argv[0] if program_name == "-c": program_name = f'python -c "import {test_pkg_name}.go"' ########################################################################### # Set additional command line options # # Defined in test_runner.py as it shares options, added to here opt_parser.set_usage( f""" Runs all or some of the {test_pkg_name}.xxxx_test tests. $ {program_name} sprite threads -sd Runs the sprite and threads module tests isolated in subprocesses, dumping all failing tests info in the form of a dict. """ ) opt_parser.add_option( "-d", "--dump", action="store_true", help="dump results as dict ready to eval" ) opt_parser.add_option("-F", "--file", help="dump results to a file") opt_parser.add_option( "-m", "--multi_thread",