mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Revert "Add option for generating coverage data from python tests."
This reverts commit 43c0fdfff0
.
This commit is contained in:
parent
d60977cc7f
commit
696f30fff2
@ -36,8 +36,6 @@ parser.add_option_group(credopts)
|
||||
sambaopts = options.SambaOptions(parser)
|
||||
parser.add_option_group(sambaopts)
|
||||
parser.add_option_group(options.VersionOptions(parser))
|
||||
parser.add_option("--coverage", metavar="CACHE", type=str,
|
||||
help="Store coverage data in CACHE")
|
||||
|
||||
args = parser.parse_args()[1]
|
||||
|
||||
@ -47,10 +45,4 @@ samba.tests.cmdline_credentials = credopts.get_credentials(samba.tests.cmdline_l
|
||||
param.cvar.default_config = samba.tests.cmdline_loadparm
|
||||
|
||||
runner = SubunitTestRunner()
|
||||
if opts.coverage is not None:
|
||||
import coverage
|
||||
coverage.use_cache(True, opts.coverage)
|
||||
coverage.start()
|
||||
program = TestProgram(module=None, argv=[sys.argv[0]] + args, testRunner=runner)
|
||||
if opts.coverage:
|
||||
coverage.stop()
|
||||
|
Loading…
Reference in New Issue
Block a user