mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add pdb options to make-test to pass onto nosetests
This commit is contained in:
parent
72840c7ad8
commit
7105a0c0d6
14
make-test
14
make-test
@ -24,6 +24,16 @@ parser.add_option('--stop',
|
|||||||
default=False,
|
default=False,
|
||||||
help='Stop running tests after the first error or failure',
|
help='Stop running tests after the first error or failure',
|
||||||
)
|
)
|
||||||
|
parser.add_option('--pdb',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Drop into debugger on errors',
|
||||||
|
)
|
||||||
|
parser.add_option('--pdb-failures',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Drop into debugger on failures',
|
||||||
|
)
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
cmd = [nose] + args + [
|
cmd = [nose] + args + [
|
||||||
@ -33,6 +43,10 @@ cmd = [nose] + args + [
|
|||||||
]
|
]
|
||||||
if options.stop:
|
if options.stop:
|
||||||
cmd.append('--stop')
|
cmd.append('--stop')
|
||||||
|
if options.pdb:
|
||||||
|
cmd.append('--pdb')
|
||||||
|
if options.pdb_failures:
|
||||||
|
cmd.append('--pdb-failures')
|
||||||
|
|
||||||
|
|
||||||
# This must be set so ipalib.api gets initialized property for tests:
|
# This must be set so ipalib.api gets initialized property for tests:
|
||||||
|
Loading…
Reference in New Issue
Block a user