docs: fix spack command for unit-test pytest help (#20415)

This commit is contained in:
Tamara Dahlgren 2020-12-16 10:13:22 -08:00 committed by GitHub
parent d505ef8217
commit cb01981628
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ def add_back_pytest_args(args, unknown_args):
def unit_test(parser, args, unknown_args): def unit_test(parser, args, unknown_args):
if args.pytest_help: if args.pytest_help:
# make the pytest.main help output more accurate # make the pytest.main help output more accurate
sys.argv[0] = 'spack test' sys.argv[0] = 'spack unit-test'
return pytest.main(['-h']) return pytest.main(['-h'])
# add back any parsed pytest args we need to pass to pytest # add back any parsed pytest args we need to pass to pytest