def test_dir_type(arg):
  """Parse a directory argument for the test command."""
  if ',' in arg:
    arg = arg.split(',')
    return (arg[0], [int(i) for i in arg[1:]])
  else:
    return (arg, [None])