Register testr as a distutil entry point
pbr contains a testr distutil command, but since it isn't registered as an entry-point, it won't get used. Also drive-by a fix to coverage, where we go to the trouble of setting a variable, and then not using it. Change-Id: I2227adf3643ffe6bcece0c7d2127d23e20d52f7a
This commit is contained in:
parent
a38dc208cf
commit
715c59738e
|
@ -125,7 +125,7 @@ class Testr(cmd.Command):
|
|||
# Use this as coverage package name
|
||||
if self.coverage_package_name:
|
||||
package = self.coverage_package_name
|
||||
options = "--source %s --parallel-mode" % self.coverage_package_name
|
||||
options = "--source %s --parallel-mode" % package
|
||||
os.environ['PYTHON'] = ("coverage run %s" % options)
|
||||
logger.debug("os.environ['PYTHON'] = %r", os.environ['PYTHON'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue