예제 #1
0
    def configure(self, parser):
        for name in ("list", "run"):
            subparser = parser.subcommands.choices.get(name, None)
            if subparser is None:
                continue

        mux = subparser.add_argument_group("yaml to mux testsuite options")
        mux.add_argument("--mux-suite-only",
                         nargs="+",
                         help="Filter only part of the YAML suite file")
        mux.add_argument("--mux-suite-out",
                         nargs="+",
                         help="Filter out part of the YAML suite file")
예제 #2
0
 def configure(self, parser):
     """
     Configures "run" and "multiplex" subparsers
     """
     if not MULTIPLEX_CAPABLE:
         return
     for name in ("run", "multiplex", "variants"):
         subparser = parser.subcommands.choices.get(name, None)
         if subparser is None:
             continue
         mux = subparser.add_argument_group("yaml to mux options")
         mux.add_argument("-m", "--mux-yaml", nargs='*', metavar="FILE",
                          help="Location of one or more Avocado"
                          " multiplex (.yaml) FILE(s) (order dependent)")
         mux.add_argument('--mux-filter-only', nargs='*', default=[],
                          help='Filter only path(s) from multiplexing')
         mux.add_argument('--mux-filter-out', nargs='*', default=[],
                          help='Filter out path(s) from multiplexing')
         mux.add_argument('--mux-path', nargs='*', default=None,
                          help="List of default paths used to determine "
                          "path priority when querying for parameters")
         mux.add_argument('--mux-inject', default=[], nargs='*',
                          help="Inject [path:]key:node values into the "
                          "final multiplex tree.")
         mux = subparser.add_argument_group("yaml to mux options "
                                            "[deprecated]")
         mux.add_argument("--multiplex", nargs='*',
                          default=None, metavar="FILE",
                          help="DEPRECATED: Location of one or more Avocado"
                          " multiplex (.yaml) FILE(s) (order dependent)")
         mux.add_argument("--filter-only", nargs='*', default=[],
                          help="DEPRECATED: Filter only path(s) from "
                          "multiplexing (use --mux-filter-only instead)")
         mux.add_argument("--filter-out", nargs='*', default=[],
                          help="DEPRECATED: Filter out path(s) from "
                          "multiplexing (use --mux-filter-out instead)")
예제 #3
0
 def configure(self, parser):
     """
     Configures "run" and "variants" subparsers
     """
     if not MULTIPLEX_CAPABLE:
         return
     for name in ("run", "multiplex", "variants"):
         subparser = parser.subcommands.choices.get(name, None)
         if subparser is None:
             continue
         mux = subparser.add_argument_group("yaml to mux options")
         mux.add_argument("-m", "--mux-yaml", nargs='*', metavar="FILE",
                          help="Location of one or more Avocado"
                          " multiplex (.yaml) FILE(s) (order dependent)")
         mux.add_argument('--mux-filter-only', nargs='*', default=[],
                          help='Filter only path(s) from multiplexing')
         mux.add_argument('--mux-filter-out', nargs='*', default=[],
                          help='Filter out path(s) from multiplexing')
         mux.add_argument('--mux-path', nargs='*', default=None,
                          help="List of default paths used to determine "
                          "path priority when querying for parameters")
         mux.add_argument('--mux-inject', default=[], nargs='*',
                          help="Inject [path:]key:node values into the "
                          "final multiplex tree.")
         mux = subparser.add_argument_group("yaml to mux options "
                                            "[deprecated]")
         mux.add_argument("--multiplex", nargs='*',
                          default=None, metavar="FILE",
                          help="DEPRECATED: Location of one or more Avocado"
                          " multiplex (.yaml) FILE(s) (order dependent)")
         mux.add_argument("--filter-only", nargs='*', default=[],
                          help="DEPRECATED: Filter only path(s) from "
                          "multiplexing (use --mux-filter-only instead)")
         mux.add_argument("--filter-out", nargs='*', default=[],
                          help="DEPRECATED: Filter out path(s) from "
                          "multiplexing (use --mux-filter-out instead)")