Module Expr Str ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias ImportFrom alias handlers ExceptHandler type NameLoad name NameStore body If CompareIn Str Call NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse Raise TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Slice Num Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Slice Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd SubscriptLoad Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str Index Num Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad NameLoad Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If UnaryOpNot Call NameLoad NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num For NameStore NameLoad body If UnaryOpNot NameLoad body AugAssignAdd NameStore Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore IfExp BoolOpAnd AttributeLoad NameLoad attr NameLoad ListLoad AttributeLoad NameLoad attr ListLoad Assign NameStore IfExp AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad While BoolOpAnd CompareLt Call NameLoad NameLoad NameLoad CompareLt NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad ListLoad AttributeLoad NameLoad attr ListLoad Str BinOpAdd Str Call NameLoad ListLoad Str NameLoad ListLoad BinOpAdd Str NameLoad ListLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice Call NameLoad Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body Print BinOpMod Str TupleLoad BinOpSub NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Call NameLoad NameLoad body Print BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad keyword NameLoad keyword Num keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword Num keyword ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword ListLoad keyword Str keyword Str keyword NameLoad keyword Dict FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Num NameLoad NameLoad NameLoad keyword NameLoad While CompareLt Call NameLoad NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpOr SubscriptLoad NameLoad Index NameLoad CompareIs Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr If CompareNotEq AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Num body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword SubscriptLoad NameLoad Index NameLoad keyword AttributeLoad SubscriptLoad NameLoad Index NameLoad attr keyword NameLoad keyword NameLoad If CompareLt Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad If CompareLt Call NameLoad NameLoad NameLoad body If CompareGt BinOpSub Call AttributeLoad NameLoad attr NameLoad Num body Print BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad NameLoad If CompareEq Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Num orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Num If CompareGt NameLoad Num body Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body If UnaryOpNot SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body If CompareNotEq AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Print BinOpMod Str AttributeLoad NameLoad attr For NameStore NameLoad body Print NameLoad Return TupleLoad NameLoad BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Print BinOpMod Str TupleLoad BinOpSub NameLoad NameLoad NameLoad Print BinOpMod Str TupleLoad BinOpAdd NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Print If BoolOpAnd UnaryOpNot NameLoad NameLoad body Print Str orelse If NameLoad body Print Str If UnaryOpNot NameLoad body Print Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareEq NameLoad BinOpAdd Str NameLoad body Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse If CompareEq NameLoad Str body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str If BoolOpAnd AttributeLoad AttributeLoad NameLoad attr attr CompareGt NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad If BoolOpAnd NameLoad UnaryOpNot AttributeLoad NameLoad attr body Print BinOpMod Str Call NameLoad NameLoad Print Str Call AttributeLoad Str attr Call NameLoad NameLoad Return Num If AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If BoolOpOr CompareIn NameLoad NameLoad CompareIn SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Print BinOpMod Str Call NameLoad NameLoad Print Str Call AttributeLoad Str attr Call NameLoad NameLoad Return Num If CompareLtE Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Num orelse Assign NameStore Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str Str BinOpAdd Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BoolOpOr NameLoad BoolOpAnd CompareLtE Call NameLoad NameLoad Num UnaryOpNot NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Num body AugAssignAdd NameStore NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad body Print BinOpMod Str BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad ListComp NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Num Assign NameStore NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Pass orelse Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd CompareGt NameLoad Num CompareGt NameLoad Num body Assign NameStore Str If CompareGt NameLoad NameLoad body AugAssignAdd NameStore Str Print Call AttributeLoad Str attr Call AttributeLoad NameLoad attr BinOpMod NameLoad TupleLoad NameLoad NameLoad orelse Print BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad IfExp NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd NameLoad UnaryOpNot NameLoad body Expr Call NameLoad Return Num Return Num decorator_list decorator_list
N/A N/A Implementation of gsutil test command. __future__ absolute_import collections namedtuple N/A logging N/A os N/A subprocess N/A sys N/A tempfile N/A textwrap N/A time N/A gslib gslib.command Command gslib.command ResetFailureCount gslib.exception CommandException gslib.project_id PopulateProjectId N/A gslib.tests tests gslib.util IS_WINDOWS gslib.util NO_MAX N/A N/A gslib.tests.util GetTestNames gslib.tests.util unittest N/A N/A N/A ImportError N/A e N/A N/A N/A unittest2 N/A str e N/A N/A unittest None N/A GetTestNames None N/A N/A N/A N/A N/A coverage N/A N/A N/A ImportError N/A N/A coverage None N/A _DEFAULT_TEST_PARALLEL_PROCESSES 5 N/A _DEFAULT_S3_TEST_PARALLEL_PROCESSES 50 N/A _SEQUENTIAL_ISOLATION_FLAG sequential_only N/A _SYNOPSIS 
  gsutil test [-l] [-u] [-f] [command command...]
 N/A _DETAILED_HELP_TEXT N/A N/A 
<B>SYNOPSIS</B>
 _SYNOPSIS N/A 


<B>DESCRIPTION</B>
  The gsutil test command runs the gsutil unit tests and integration tests.
  The unit tests use an in-memory mock storage service implementation, while
  the integration tests send requests to the production service using the
  preferred API set in the boto configuration file (see "gsutil help apis" for
  details).

  To run both the unit tests and integration tests, run the command with no
  arguments:

    gsutil test

  To run the unit tests only (which run quickly):

    gsutil test -u

  Tests run in parallel regardless of whether the top-level -m flag is
  present. To limit the number of tests run in parallel to 10 at a time:

    gsutil test -p 10

  To force tests to run sequentially:

    gsutil test -p 1    

  To have sequentially-run tests stop running immediately when an error occurs:

    gsutil test -f

  To run tests for one or more individual commands add those commands as
  arguments. For example, the following command will run the cp and mv command
  tests:

    gsutil test cp mv

  To list available tests, run the test command with the -l argument:

    gsutil test -l

  The tests are defined in the code under the gslib/tests module. Each test
  file is of the format test_[name].py where [name] is the test name you can
  pass to this command. For example, running "gsutil test ls" would run the
  tests in "gslib/tests/test_ls.py".

  You can also run an individual test class or function name by passing the
  test module followed by the class name and optionally a test name. For
  example, to run the an entire test class by name:

    gsutil test naming.GsutilNamingTests

  or an individual test function:

    gsutil test cp.TestCp.test_streaming

  You can list the available tests under a module or class by passing arguments
  with the -l option. For example, to list all available test functions in the
  cp module:

    gsutil test -l cp

  To output test coverage:

    gsutil test -c -p 500
    coverage html

  This will output an HTML report to a directory named 'htmlcov'.


<B>OPTIONS</B>
  -c          Output coverage information.

  -f          Exit on first sequential test failure.

  -l          List available tests.

  -p N        Run at most N tests in parallel. The default value is %d.

  -s          Run tests against S3 instead of GS.

  -u          Only run unit tests.
 _DEFAULT_TEST_PARALLEL_PROCESSES N/A TestProcessData N/A namedtuple TestProcessData name return_code stdout stderr MakeCustomTestResultClass N/A N/A total_tests N/A N/A N/A Creates a closure of CustomTestResult.

  Args:
    total_tests: The total number of tests being run.

  Returns:
    An instance of CustomTestResult.
   CustomTestResult N/A N/A unittest TextTestResult N/A N/A A subclass of unittest.TextTestResult that prints a progress report. startTest N/A N/A self test N/A N/A N/A N/A N/A N/A super CustomTestResult self startTest test N/A N/A self dots N/A N/A test_id N/A N/A . join N/A N/A N/A N/A N/A test id split . N/A -2 N/A message N/A 
%d/%d finished - E[%d] F[%d] s[%d] - %s N/A N/A self testsRun total_tests N/A len N/A self errors N/A len N/A self failures N/A len N/A self skipped test_id N/A message N/A message N/A 73 N/A message N/A N/A message ljust 73 N/A N/A N/A N/A self stream write N/A %s -  message N/A N/A N/A CustomTestResult N/A GetTestNamesFromSuites N/A N/A test_suite N/A N/A N/A Takes a list of test suites and returns a list of contained test names. N/A suites N/A test_suite N/A test_names N/A N/A suites N/A N/A suite N/A N/A suites pop N/A test suite N/A N/A N/A isinstance test N/A unittest TestSuite N/A N/A N/A N/A suites append test N/A N/A N/A N/A test_names append N/A N/A N/A test id N/A N/A len gslib.tests.test_ N/A test_names N/A TestCaseToName N/A N/A test_case N/A N/A N/A Converts a python.unittest to its gsutil test-callable name. N/A N/A N/A N/A N/A N/A N/A str N/A test_case __class__ split ' N/A 1 . N/A test_case _testMethodName N/A SplitParallelizableTestSuite N/A N/A test_suite N/A N/A N/A Splits a test suite into groups with different running properties.

  Args:
    test_suite: A python unittest test suite.

  Returns:
    4-part tuple of lists of test names:
    (tests that must be run sequentially,
     tests that must be isolated in a separate process but can be run either
         sequentially or in parallel,
     unit tests that can be run in parallel,
     integration tests that can run in parallel)
   gslib.tests.testcase.unit_testcase GsUtilUnitTestCase N/A isolated_tests N/A N/A sequential_tests N/A N/A parallelizable_integration_tests N/A N/A parallelizable_unit_tests N/A N/A items_to_evaluate N/A test_suite N/A cases_to_evaluate N/A N/A items_to_evaluate N/A N/A suite_or_case N/A N/A items_to_evaluate pop N/A N/A isinstance suite_or_case N/A N/A unittest suite TestSuite N/A N/A item N/A suite_or_case _tests N/A N/A N/A N/A items_to_evaluate append item N/A N/A N/A isinstance suite_or_case N/A unittest TestCase N/A N/A N/A N/A cases_to_evaluate append suite_or_case N/A test_case cases_to_evaluate N/A N/A test_method N/A getattr test_case N/A test_case _testMethodName None N/A N/A getattr test_method requires_isolation False N/A N/A N/A N/A isolated_tests append N/A TestCaseToName test_case N/A N/A N/A N/A getattr test_method is_parallelizable True N/A N/A N/A N/A sequential_tests append N/A TestCaseToName test_case N/A N/A N/A isinstance test_case GsUtilUnitTestCase N/A N/A N/A N/A parallelizable_unit_tests append N/A TestCaseToName test_case N/A N/A N/A N/A parallelizable_integration_tests append N/A TestCaseToName test_case N/A N/A N/A sorted sequential_tests N/A sorted isolated_tests N/A sorted parallelizable_unit_tests N/A sorted parallelizable_integration_tests N/A CountFalseInList N/A N/A input_list N/A N/A N/A Counts number of falses in the input list. N/A num_false 0 N/A item input_list N/A N/A N/A item N/A N/A num_false 1 N/A num_false N/A CreateTestProcesses N/A N/A parallel_tests test_index process_list process_done max_parallel_tests root_coverage_file N/A None N/A N/A Creates test processes to run tests in parallel.

  Args:
    parallel_tests: List of all parallel tests.
    test_index: List index of last created test before this function call.
    process_list: List of running subprocesses. Created processes are appended
                  to this list.
    process_done: List of booleans indicating process completion. One 'False'
                  will be added per process created.
    max_parallel_tests: Maximum number of tests to run in parallel.
    root_coverage_file: The root .coverage filename if coverage is requested.

  Returns:
    Index of last created test.
   N/A orig_test_index test_index N/A executable_prefix N/A N/A N/A sys executable IS_WINDOWS N/A N/A sys executable N/A N/A s3_argument N/A N/A N/A tests util RUN_S3_TESTS N/A -s N/A N/A process_create_start_time N/A N/A time time N/A last_log_time process_create_start_time N/A N/A N/A N/A CountFalseInList process_done max_parallel_tests N/A test_index N/A len parallel_tests N/A N/A env N/A N/A N/A os environ copy N/A root_coverage_file N/A N/A N/A env N/A GSUTIL_COVERAGE_OUTPUT_FILE root_coverage_file N/A N/A N/A process_list append N/A N/A subprocess Popen N/A N/A N/A N/A N/A N/A executable_prefix N/A N/A gslib GSUTIL_PATH N/A -o N/A GSUtil:default_project_id= N/A PopulateProjectId N/A test s3_argument N/A N/A -- _SEQUENTIAL_ISOLATION_FLAG N/A N/A N/A parallel_tests N/A test_index N/A N/A len gslib.tests.test_ stdout N/A subprocess PIPE stderr N/A subprocess PIPE env env N/A test_index 1 N/A N/A N/A process_done append False N/A N/A N/A N/A N/A time time last_log_time 5 N/A N/A N/A Created %d new processes (total %d/%d created) N/A N/A test_index orig_test_index N/A len process_list N/A len parallel_tests N/A last_log_time N/A N/A time time N/A N/A test_index N/A len parallel_tests N/A N/A N/A Test process creation finished (%d/%d created) N/A N/A len process_list N/A len parallel_tests N/A test_index N/A TestCommand N/A Command N/A N/A Implementation of gsutil test command. N/A command_spec N/A N/A Command CreateCommandSpec test command_name_aliases N/A usage_synopsis _SYNOPSIS min_args 0 max_args NO_MAX supported_sub_args uflp:sc file_url_ok True provider_url_ok False urls_start_arg 0 supported_private_args N/A _SEQUENTIAL_ISOLATION_FLAG N/A help_spec N/A N/A Command HelpSpec help_name test help_name_aliases N/A help_type command_help help_one_line_summary Run gsutil tests help_text _DETAILED_HELP_TEXT subcommand_help_text N/A RunParallelTests N/A N/A self parallel_integration_tests max_parallel_tests coverage_filename N/A N/A N/A Executes the parallel/isolated portion of the test suite.

    Args:
      parallel_integration_tests: List of tests to execute.
      max_parallel_tests: Maximum number of parallel tests to run at once.
      coverage_filename: If not None, filename for coverage output.

    Returns:
      (int number of test failures, float elapsed time)
     N/A process_list N/A N/A process_done N/A N/A process_results N/A N/A num_parallel_failures 0 N/A progress_less_logging_cycles 0 N/A completed_as_of_last_log 0 N/A num_parallel_tests N/A len parallel_integration_tests N/A parallel_start_time last_log_time N/A N/A time time N/A test_index N/A CreateTestProcesses parallel_integration_tests 0 process_list process_done max_parallel_tests root_coverage_file coverage_filename N/A N/A N/A len process_results num_parallel_tests N/A N/A proc_num N/A xrange N/A len process_list N/A N/A N/A N/A process_done N/A proc_num N/A N/A N/A N/A process_list N/A proc_num poll None N/A N/A N/A N/A process_done N/A proc_num True N/A N/A stdout stderr N/A N/A N/A process_list N/A proc_num communicate N/A N/A N/A N/A N/A process_list N/A proc_num stdout close N/A N/A N/A N/A N/A process_list N/A proc_num stderr close N/A N/A N/A N/A process_list N/A proc_num returncode 0 N/A N/A num_parallel_failures 1 N/A N/A N/A process_results append N/A TestProcessData name N/A parallel_integration_tests N/A proc_num return_code N/A N/A process_list N/A proc_num returncode stdout stdout stderr stderr N/A N/A N/A len process_list num_parallel_tests N/A N/A test_index N/A CreateTestProcesses parallel_integration_tests test_index process_list process_done max_parallel_tests root_coverage_file coverage_filename N/A N/A N/A len process_results num_parallel_tests N/A N/A N/A N/A N/A N/A time time last_log_time 5 N/A N/A N/A %d/%d finished - %d failures N/A N/A len process_results num_parallel_tests num_parallel_failures N/A N/A N/A len process_results completed_as_of_last_log N/A N/A progress_less_logging_cycles 1 N/A N/A completed_as_of_last_log N/A len process_results N/A progress_less_logging_cycles 0 N/A N/A progress_less_logging_cycles 4 N/A N/A still_running N/A N/A proc_num N/A xrange N/A len process_list N/A N/A N/A N/A process_done N/A proc_num N/A N/A N/A N/A still_running append N/A parallel_integration_tests N/A proc_num N/A N/A Still running: %s still_running N/A last_log_time N/A N/A time time N/A N/A N/A time sleep 1 N/A process_run_finish_time N/A N/A time time N/A num_parallel_failures N/A N/A result process_results N/A N/A N/A N/A result return_code 0 N/A N/A new_stderr N/A N/A N/A result stderr split N/A N/A Results for failed test %s: N/A result name N/A line new_stderr N/A N/A line N/A N/A num_parallel_failures N/A process_run_finish_time parallel_start_time N/A PrintTestResults N/A N/A self num_sequential_tests sequential_success sequential_time_elapsed num_parallel_tests num_parallel_failures parallel_time_elapsed N/A N/A N/A Prints test results for parallel and sequential tests. N/A N/A Parallel tests complete. Success: %s Fail: %s N/A N/A num_parallel_tests num_parallel_failures num_parallel_failures N/A N/A Ran %d tests in %.3fs (%d sequential in %.3fs, %d parallel in %.3fs) N/A N/A num_parallel_tests num_sequential_tests N/A float N/A sequential_time_elapsed parallel_time_elapsed num_sequential_tests N/A float sequential_time_elapsed num_parallel_tests N/A float parallel_time_elapsed N/A N/A N/A N/A num_parallel_failures sequential_success N/A N/A OK N/A N/A num_parallel_failures N/A N/A FAILED (parallel tests) N/A N/A sequential_success N/A N/A FAILED (sequential tests) N/A RunCommand N/A N/A self N/A N/A N/A Command entry point for the test command. N/A N/A unittest N/A N/A N/A CommandException On Python 2.6, the unittest2 module is required to run the gsutil tests. N/A failfast False N/A list_tests False N/A max_parallel_tests _DEFAULT_TEST_PARALLEL_PROCESSES N/A perform_coverage False N/A sequential_only False N/A N/A self sub_opts N/A N/A N/A o a N/A self sub_opts N/A N/A N/A o -c N/A N/A perform_coverage True N/A N/A N/A o -f N/A N/A failfast True N/A N/A N/A o -l N/A N/A list_tests True N/A N/A N/A o N/A -- _SEQUENTIAL_ISOLATION_FLAG N/A N/A sequential_only True N/A N/A N/A o -p N/A N/A max_parallel_tests N/A long a N/A N/A N/A o -s N/A N/A N/A N/A N/A tests util HAS_S3_CREDS N/A N/A N/A CommandException S3 tests require S3 credentials. Please add appropriate credentials to your .boto file and re-run. N/A N/A N/A tests util RUN_S3_TESTS True N/A N/A N/A o -u N/A N/A N/A N/A tests util RUN_INTEGRATION_TESTS False N/A N/A perform_coverage N/A coverage N/A N/A N/A CommandException Coverage has been requested but the coverage module was not found. You can install it with "pip install coverage". N/A N/A N/A N/A tests util RUN_S3_TESTS N/A max_parallel_tests _DEFAULT_S3_TEST_PARALLEL_PROCESSES N/A N/A N/A N/A N/A self logger warn Reducing parallel tests to %d due to S3 maximum bucket limitations. _DEFAULT_S3_TEST_PARALLEL_PROCESSES N/A max_parallel_tests _DEFAULT_S3_TEST_PARALLEL_PROCESSES N/A test_names N/A sorted N/A GetTestNames N/A N/A list_tests N/A N/A self args N/A N/A N/A Found %d test names: N/A len test_names N/A N/A N/A join N/A sorted test_names N/A 0 N/A N/A self args N/A N/A commands_to_test N/A N/A name N/A self args N/A N/A N/A N/A name test_names N/A N/A N/A N/A name split . N/A 0 test_names N/A N/A N/A N/A commands_to_test append N/A gslib.tests.test_%s name N/A N/A N/A N/A commands_to_test append name N/A N/A commands_to_test N/A N/A gslib.tests.test_%s name N/A name test_names N/A N/A N/A unittest installHandler N/A loader N/A N/A unittest TestLoader N/A commands_to_test N/A N/A N/A N/A suite N/A N/A loader loadTestsFromNames commands_to_test N/A N/A N/A N/A ImportError AttributeError N/A e N/A N/A N/A CommandException N/A Invalid test argument name: %s e N/A list_tests N/A N/A test_names N/A GetTestNamesFromSuites suite N/A N/A Found %d test names: N/A len test_names N/A N/A N/A join N/A sorted test_names N/A 0 N/A N/A N/A N/A N/A N/A logging getLogger getEffectiveLevel N/A logging INFO N/A N/A verbosity 1 N/A N/A verbosity 2 N/A N/A N/A logging disable N/A logging ERROR N/A perform_coverage N/A N/A coverage_controller N/A N/A coverage coverage source N/A gslib omit N/A gslib/third_party/* gslib/tests/* N/A N/A N/A tempfile gettempdir * N/A N/A N/A coverage_controller erase N/A N/A N/A coverage_controller start N/A num_parallel_failures 0 N/A sequential_success False N/A N/A sequential_tests isolated_tests parallel_unit_tests parallel_integration_tests N/A SplitParallelizableTestSuite suite N/A N/A N/A N/A tests util RUN_INTEGRATION_TESTS N/A N/A parallel_integration_tests N/A N/A N/A N/A logging debug Sequential tests to run: %s sequential_tests N/A N/A N/A logging debug Isolated tests to run: %s isolated_tests N/A N/A N/A logging debug Parallel unit tests to run: %s parallel_unit_tests N/A N/A N/A logging debug Parallel integration tests to run: %s parallel_integration_tests N/A run_tests_sequentially N/A sequential_only N/A N/A N/A len parallel_integration_tests 1 N/A isolated_tests N/A run_tests_sequentially N/A N/A total_tests N/A N/A suite countTestCases N/A resultclass N/A MakeCustomTestResultClass total_tests N/A runner N/A N/A unittest TextTestRunner verbosity verbosity resultclass resultclass failfast failfast N/A ret N/A N/A runner run suite N/A sequential_success N/A N/A ret wasSuccessful N/A N/A N/A max_parallel_tests 1 N/A N/A sequential_tests parallel_integration_tests N/A parallel_integration_tests N/A N/A sequential_start_time N/A N/A time time N/A N/A N/A len sequential_tests N/A len parallel_unit_tests N/A N/A N/A Running %d tests sequentially. N/A N/A len sequential_tests N/A len parallel_unit_tests N/A sequential_tests_to_run N/A sequential_tests parallel_unit_tests N/A suite N/A N/A loader loadTestsFromNames N/A sorted N/A test_name N/A test_name sequential_tests_to_run N/A num_sequential_tests N/A N/A suite countTestCases N/A resultclass N/A MakeCustomTestResultClass num_sequential_tests N/A runner N/A N/A unittest TextTestRunner verbosity verbosity resultclass resultclass failfast failfast N/A ret N/A N/A runner run suite N/A sequential_success N/A N/A ret wasSuccessful N/A N/A num_sequential_tests 0 N/A sequential_success True N/A sequential_time_elapsed N/A N/A N/A time time sequential_start_time N/A parallel_integration_tests isolated_tests N/A num_parallel_tests N/A len parallel_integration_tests N/A N/A num_parallel_tests N/A N/A N/A N/A num_processes N/A min max_parallel_tests num_parallel_tests N/A N/A N/A num_parallel_tests 1 N/A max_parallel_tests 1 N/A N/A message Running %d tests in parallel mode (%d processes). N/A N/A num_processes _DEFAULT_TEST_PARALLEL_PROCESSES N/A N/A message  Please be patient while your CPU is incinerated. If your machine becomes unresponsive, consider reducing the amount of parallel test processes by running 'gsutil test -p <num_processes>'. N/A N/A N/A join N/A N/A textwrap wrap N/A message N/A num_parallel_tests num_processes N/A N/A N/A Running %d tests sequentially in isolated processes. num_parallel_tests N/A N/A num_parallel_failures parallel_time_elapsed N/A N/A self RunParallelTests parallel_integration_tests max_parallel_tests N/A perform_coverage N/A N/A coverage_controller data filename None N/A N/A N/A self PrintTestResults num_sequential_tests sequential_success sequential_time_elapsed num_parallel_tests num_parallel_failures parallel_time_elapsed N/A perform_coverage N/A N/A N/A N/A coverage_controller stop N/A N/A N/A coverage_controller combine N/A N/A N/A coverage_controller save N/A N/A Coverage information was saved to: %s N/A N/A coverage_controller data filename N/A N/A sequential_success N/A num_parallel_failures N/A N/A N/A ResetFailureCount N/A 0 N/A 1 N/A N/A