message: Added class for providing arguments that are not common to the whole integration test suite. GH
diff: @@ -6,6 +6,23 @@ import platform
  import argparse
  +class AppArgs:
  + def __init__(self):
  + self.args=[]
  +
  + class AppArg:
  + def __init__(self, flag, type, help, default, choices=None):
  + self.flag=flag
  + self.type=type
  + self.help=help
  + self.default=default
  + self.choices=choices
  +
  + def add(self, flag, type, help, default, choices=None):
  + arg=self.AppArg(flag, type, help, default, choices)
  + self.args.append(arg)
  + Utils.Print("args %d" % (len(self.args)))
  +
  # pylint: disable=too-many-instance-attributes
  class TestHelper(object):
  LOCAL_HOST="localhost"
  @@ -14,10 +31,12 @@ class TestHelper(object):
  @staticmethod
  # pylint: disable=too-many-branches
  # pylint: disable=too-many-statements
  - def parse_args(includeArgs):
  + def parse_args(includeArgs, applicationSpecificArgs=AppArgs()):
  """Accepts set of arguments, builds argument parser and returns parse_args() output."""
  assert(includeArgs)
  assert(isinstance(includeArgs, set))
  + assert(isinstance(applicationSpecificArgs, AppArgs))
  + Utils.Print("applicationSpecificArgs %d" % (len(applicationSpecificArgs.args)))
  parser = argparse.ArgumentParser(add_help=False)
  parser.add_argument('-?', action='help', default=argparse.SUPPRESS,
  @@ -82,6 +101,9 @@ class TestHelper(object):
  if "--sanity-test" in includeArgs:
  parser.add_argument("--sanity-test", help="Validates nodeos and kleos are in path and can be started up.", action='store_true')
  + for arg in applicationSpecificArgs.args:
  + parser.add_argument(arg.flag, type=arg.type, help=arg.help, choices=arg.choices, default=arg.default)
  +
  args = parser.parse_args()
  return args
  