Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29607

resmoke.py should print list of suites when user specifies an invalid one

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible

      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.

            Assignee:
            ian.boros@mongodb.com Ian Boros
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: