[SERVER-29607] resmoke.py should print list of suites when user specifies an invalid one Created: 13/Jun/17  Updated: 30/Oct/23  Resolved: 06/Oct/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.6.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Ian Boros
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Current output:

[resmoke] 2017-06-13T14:50:49.168-0400 resmoke.py invocation: buildscripts/resmoke.py --suite=integration_tests_replica_set
Traceback (most recent call last):
  File "buildscripts/resmoke.py", line 189, in <module>
    main()
  File "buildscripts/resmoke.py", line 144, in main
    suites = resmokelib.parser.get_suites(values, args)
  File "/home/mstearn/10gen/mongo/buildscripts/resmokelib/parser.py", line 358, in get_suites
    suite_config = _get_suite_config(suite_filename)
  File "/home/mstearn/10gen/mongo/buildscripts/resmokelib/parser.py", line 412, in _get_suite_config
    return _get_yaml_config("suite", pathname)
  File "/home/mstearn/10gen/mongo/buildscripts/resmokelib/parser.py", line 430, in _get_yaml_config
    raise optparse.OptionValueError("Unknown %s '%s'" % (kind, pathname))
optparse.OptionValueError: Unknown suite 'integration_tests_replica_set'

Desired output:

[resmoke] 2017-06-13T14:44:27.599-0400 Unknown suite 'integration_tests_replica_set'
[resmoke] 2017-06-13T14:44:27.599-0400 Suites available to execute:
aggregation
aggregation_auth
aggregation_ese
aggregation_facet_unwind_passthrough
aggregation_read_concern_majority_passthrough
aggregation_sharded_collections_passthrough
audit
auth
auth_audit
bulk_gle_passthrough
causally_consistent_jscore_passthrough
concurrency
concurrency_replication
concurrency_sharded
core
core_auth
core_ese
core_minimum_batch_size
core_op_query
dbtest
decimal
disk_mmapv1
disk_wiredtiger
dur_jscore_passthrough
durability
ese
external_auth
failpoints
failpoints_auth
gle_auth
gle_auth_basics_passthrough
integration_tests_replset
integration_tests_sharded
integration_tests_standalone
jstestfuzz
jstestfuzz_replication
jstestfuzz_replication_initsync
jstestfuzz_replication_resync
jstestfuzz_sharded
master_slave
master_slave_auth
master_slave_jscore_passthrough
mmap
mongos_test
multiversion
multiversion_auth
multiversion_multistorage_engine
no_passthrough
no_passthrough_with_mongod
parallel
read_concern_linearizable_passthrough
read_concern_majority_passthrough
read_only
read_only_sharded
replica_sets
replica_sets_auth
replica_sets_ese
replica_sets_initsync_jscore_passthrough
replica_sets_initsync_static_jscore_passthrough
replica_sets_jscore_passthrough
replica_sets_kill_secondaries_jscore_passthrough
replica_sets_pv0
replica_sets_resync_jscore_passthrough
replica_sets_resync_static_jscore_passthrough
rlp
sasl
serial_run
sharded_collections_jscore_passthrough
sharding
sharding_auth
sharding_auth_audit
sharding_continuous_config_stepdown
sharding_ese
sharding_gle_auth_basics_passthrough
sharding_jscore_passthrough
sharding_last_stable_mongos_and_mixed_shards
slow1
snmp
ssl
ssl_special
tool
unittests
unittests_auth
unittests_client
unittests_query
unittests_repl
unittests_sharding

Obviously, this should also work for --executor.



 Comments   
Comment by Githook User [ 06/Oct/17 ]

Author:

{'email': 'ian.boros@10gen.com', 'name': 'Ian Boros'}

Message: SERVER-29607 resmoke prints available suites when an invalid one is specified
Branch: master
https://github.com/mongodb/mongo/commit/65d4cdd857305929e7341bf30c2fb72dc2641130

Generated at Thu Feb 08 04:21:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.